From: proski Date: Wed, 15 Apr 2009 03:47:42 +0000 (+0000) Subject: Don't unset dev->stop, it's dangerous to mess with netdev internals X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=ac79ec61827a3bf57238d7dad17c328684977228;p=madwifi%2F.git 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 --- 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; }