From 34b164dd25b6ee972b1cd4170f2943edb5907b5e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 30 Nov 2015 22:06:54 +0200 Subject: [PATCH] tests: Fix p2p_go_move_scm_peer_does_not_support to clear avoid freqs The P2P channel list on dev[1] at the end of p2p_go_move_scm_peer_does_not_support was empty because all of the 2.4 GHz band got disabled by the simulated avoid frequencies driver event. That channel list needs to be cleared prior to resetting regulatory domain back to world roaming to get the P2P channel list updated properly for the following test cases. This was triggered by the following test case sequence: p2p_go_move_scm_peer_does_not_support persistent_group_and_role_change Signed-off-by: Jouni Malinen --- tests/hwsim/test_p2p_channel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py index 68c485eca..512f91b20 100644 --- a/tests/hwsim/test_p2p_channel.py +++ b/tests/hwsim/test_p2p_channel.py @@ -900,6 +900,7 @@ def _test_p2p_go_move_scm_peer_does_not_support(dev, apdev): dev[0].remove_group() finally: dev[0].global_request("SET p2p_go_freq_change_policy 2") + dev[1].request("DRIVER_EVENT AVOID_FREQUENCIES") set_country("00") def test_p2p_go_move_scm_multi(dev, apdev):