From 7f90a850ffb8bb4e7b8528555d44cd89b2d9872c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 1 Jan 2019 16:35:42 +0200 Subject: [PATCH] tests: Clear regdom state in go_neg_forced_freq_diff_than_bss_freq Be more careful with cleaning up the regdom state in cfg80211. Signed-off-by: Jouni Malinen --- tests/hwsim/test_p2p_channel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py index 316f6b6a3..5e9fee17f 100644 --- a/tests/hwsim/test_p2p_channel.py +++ b/tests/hwsim/test_p2p_channel.py @@ -464,8 +464,10 @@ def test_go_neg_forced_freq_diff_than_bss_freq(dev, apdev): raise Exception("GO not selected according to go_intent") hwsim_utils.test_connectivity(wpas, hapd) - wpas.request("DISCONNECT") hapd.request("DISABLE") + wpas.request("DISCONNECT") + wpas.request("ABORT_SCAN") + wpas.wait_disconnected() subprocess.call(['iw', 'reg', 'set', '00']) wpas.flush_scan_cache()