From 0fcaff7a700d232d8b121cfaadd65b84b8c85ec9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 7 Feb 2017 23:03:35 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_wpas_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/hwsim/test_wpas_config.py b/tests/hwsim/test_wpas_config.py index 34024aaf6..12cb6e8a4 100644 --- a/tests/hwsim/test_wpas_config.py +++ b/tests/hwsim/test_wpas_config.py @@ -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"""