]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Unload cfg80211 on stop-wifi.sh
authorJouni Malinen <j@w1.fi>
Sat, 26 Oct 2013 21:08:51 +0000 (00:08 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 26 Oct 2013 21:08:51 +0000 (00:08 +0300)
cfg80211 may keep some state (e.g., regulatory domain), so make sure
this gets cleared between each full testing cycle.

Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/stop-wifi.sh

index 96618e6b91ffff5d184738be5c59d517e39feb2f..eaa9d4e3badd0074991b669d9585cd2246fa0d63 100755 (executable)
@@ -69,6 +69,8 @@ done
 
 if grep -q mac80211_hwsim /proc/modules ; then
     sudo rmmod mac80211_hwsim 
+    sudo rmmod mac80211
+    sudo rmmod cfg80211
     # wait at the end to avoid issues starting something new immediately after
     # this script returns
     sleep 1