From: Jouni Malinen Date: Sat, 26 Oct 2013 21:08:51 +0000 (+0300) Subject: tests: Unload cfg80211 on stop-wifi.sh X-Git-Tag: hostap_2_1~767 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00606de898df62e09ab159d4936f5b7583221039;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/stop-wifi.sh b/tests/hwsim/stop-wifi.sh index 96618e6b9..eaa9d4e3b 100755 --- a/tests/hwsim/stop-wifi.sh +++ b/tests/hwsim/stop-wifi.sh @@ -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