]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix p2p_go_move_scm_peer_does_not_support to clear avoid freqs
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 30 Nov 2015 20:06:54 +0000 (22:06 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 30 Nov 2015 20:06:54 +0000 (22:06 +0200)
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 <jouni@qca.qualcomm.com>
tests/hwsim/test_p2p_channel.py

index 68c485eca2fc754eba5fc6c20daba06d9b08a595..512f91b20d0b99cab0be023f8358363e23027b3b 100644 (file)
@@ -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):