aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-09-30 20:46:17 (GMT)
committerJouni Malinen <j@w1.fi>2016-09-30 20:46:17 (GMT)
commitd57ca5cd458dd43bc1015c306c140363ec93889f (patch)
tree1dc43602dc0396fa64b7b84501200e90327ac81a /tests
parentebf59eb549827ecfb7a42281721a1af9cfa0d7a1 (diff)
downloadhostap-d57ca5cd458dd43bc1015c306c140363ec93889f.zip
hostap-d57ca5cd458dd43bc1015c306c140363ec93889f.tar.gz
hostap-d57ca5cd458dd43bc1015c306c140363ec93889f.tar.bz2
tests: Fix ap_track_taxonomy to clear country code setting
This test case could have ended with the station devices still in US regulatory domain and that could make a following test case fail in some sequences. For example, "ap_track_taxonomy ibss_5ghz" sequence made ibss_5ghz fail to see the regdom change event since there was not one due to the US country code already being in use at the beginning of the test case. Fix this by clearing the country code at the end of ap_track_taxonomy. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_ap_track.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_track.py b/tests/hwsim/test_ap_track.py
index 64ca843..75664a4 100644
--- a/tests/hwsim/test_ap_track.py
+++ b/tests/hwsim/test_ap_track.py
@@ -290,6 +290,10 @@ def test_ap_track_taxonomy(dev, apdev):
_test_ap_track_taxonomy(dev, apdev)
finally:
dev[1].request("SET p2p_disabled 0")
+ subprocess.call(['iw', 'reg', 'set', '00'])
+ dev[0].flush_scan_cache()
+ dev[1].flush_scan_cache()
+ dev[2].flush_scan_cache()
def _test_ap_track_taxonomy(dev, apdev):
params = { "ssid": "track",