Browse Source

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 <jouni@qca.qualcomm.com>
Jouni Malinen 9 years ago
parent
commit
34b164dd25
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/hwsim/test_p2p_channel.py

+ 1 - 0
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):