]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear country code at the end of wpas_config_file
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 7 Feb 2017 21:03:35 +0000 (23:03 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 7 Feb 2017 21:03:35 +0000 (23:03 +0200)
This test case was mistakenly leaving the country code FI configured at
the end which could result in issues with the following test cases. Fix
this by explicitly clearing the country code back to world roaming 00 at
the end of wpas_config_file.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_wpas_config.py

index 34024aaf69a0e579e809d4f2f1390dd050812883..12cb6e8a4a200c8b28a4b6e5e4edeea3646878af 100644 (file)
@@ -252,6 +252,9 @@ def test_wpas_config_file(dev, apdev, params):
             os.rmdir(config)
         except:
             pass
+        wpas.dump_monitor()
+        wpas.request("SET country 00")
+        wpas.wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=1)
 
 def test_wpas_config_file_wps(dev, apdev):
     """wpa_supplicant config file parsing/writing with WPS"""