Browse Source

tests: Unload cfg80211 on stop-wifi.sh

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>
Jouni Malinen 11 years ago
parent
commit
00606de898
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/hwsim/stop-wifi.sh

+ 2 - 0
tests/hwsim/stop-wifi.sh

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