mirror of
https://github.com/proski/madwifi
synced 2024-11-22 14:31:22 +03:00
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:
parent
193615c0df
commit
ac79ec6182
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user