* [PATCH] mac80211_hwsim: fix unregistration
@ 2009-07-13 11:04 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2009-07-13 11:04 UTC (permalink / raw)
To: John Linville; +Cc: Jouni Malinen, linux-wireless
If you rmmod the module while associated, frames might
be transmitted during unregistration -- which will crash
if the hwsim%d interface is unregistered first, so only
do that after all the virtual wiphys are gone.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
drivers/net/wireless/mac80211_hwsim.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- wireless-testing.orig/drivers/net/wireless/mac80211_hwsim.c 2009-07-13 13:01:01.000000000 +0200
+++ wireless-testing/drivers/net/wireless/mac80211_hwsim.c 2009-07-13 13:01:54.000000000 +0200
@@ -1250,8 +1250,8 @@ static void __exit exit_mac80211_hwsim(v
{
printk(KERN_DEBUG "mac80211_hwsim: unregister radios\n");
- unregister_netdev(hwsim_mon);
mac80211_hwsim_free();
+ unregister_netdev(hwsim_mon);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-13 11:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-13 11:04 [PATCH] mac80211_hwsim: fix unregistration Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox