]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: fix unregistration
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 13 Jul 2009 11:04:30 +0000 (13:04 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 21 Jul 2009 16:07:39 +0000 (12:07 -0400)
commit2ea0cd45130e1b6868622783d3a181e33abb92cd
tree956bd71f9e856f2b338fcd9889b7df002af5855c
parent4673ecdba3cd2352b05b3e47de789a953fa49774
mac80211_hwsim: fix unregistration

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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c