From ac79ec61827a3bf57238d7dad17c328684977228 Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 15 Apr 2009 03:47:42 +0000 Subject: [PATCH] Don't unset dev->stop, it's dangerous to mess with netdev internals Instead, unset IFF_RUNNUNG on the interface - this suppresses most functionality of ath_stop(). git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4001 0192ed92-7a03-0410-a25b-9323aeb14dbd --- ath/if_ath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ath/if_ath.c b/ath/if_ath.c index 5e562ac..4ed5172 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -1184,7 +1184,7 @@ ath_detach(struct net_device *dev) ATH_BBUF_LOCK_DESTROY(sc); ATH_GBUF_LOCK_DESTROY(sc); ATH_HAL_LOCK_DESTROY(sc); - dev->stop = NULL; /* prevent calling ath_stop again */ + dev->flags &= ~IFF_RUNNING; /* mark as stopped */ unregister_netdev(dev); return 0; } -- 2.35.1