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>
This commit is contained in:
Jouni Malinen 2013-10-27 00:08:51 +03:00
parent e201e5ab61
commit 00606de898

View file

@ -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