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
This commit is contained in:
proski 2009-04-15 03:47:42 +00:00
parent 193615c0df
commit ac79ec6182

View File

@ -1184,7 +1184,7 @@ ath_detach(struct net_device *dev)
ATH_BBUF_LOCK_DESTROY(sc); ATH_BBUF_LOCK_DESTROY(sc);
ATH_GBUF_LOCK_DESTROY(sc); ATH_GBUF_LOCK_DESTROY(sc);
ATH_HAL_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); unregister_netdev(dev);
return 0; return 0;
} }