]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear regdom state in go_neg_forced_freq_diff_than_bss_freq
authorJouni Malinen <j@w1.fi>
Tue, 1 Jan 2019 14:35:42 +0000 (16:35 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 1 Jan 2019 14:35:42 +0000 (16:35 +0200)
Be more careful with cleaning up the regdom state in cfg80211.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_p2p_channel.py

index 316f6b6a3675b5f24ab49294064c9fb77d48a74e..5e9fee17f2def8f7b7d2289eaf75201f930d9ed8 100644 (file)
@@ -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()