Browse Source

tests: Clear country code at the end of wpas_config_file

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>
Jouni Malinen 8 years ago
parent
commit
0fcaff7a70
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/hwsim/test_wpas_config.py

+ 3 - 0
tests/hwsim/test_wpas_config.py

@@ -252,6 +252,9 @@ def test_wpas_config_file(dev, apdev, params):
             os.rmdir(config)
             os.rmdir(config)
         except:
         except:
             pass
             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):
 def test_wpas_config_file_wps(dev, apdev):
     """wpa_supplicant config file parsing/writing with WPS"""
     """wpa_supplicant config file parsing/writing with WPS"""