]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make p2p_msg_invitation_req_to_go more robust
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 27 Nov 2014 19:22:31 +0000 (21:22 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 27 Nov 2014 19:22:31 +0000 (21:22 +0200)
Wait for GO to start before sending invitation frames in the protocol
test. Without this, it was possible to hit the 5 second timeout on
management frame RX under load.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_p2p_messages.py

index eae5e4d14c9e493c13cb94c1f1150f975b16789c..dc56b7c19cb745749311ea231b53aa868bdf6760 100644 (file)
@@ -735,8 +735,7 @@ def test_p2p_msg_invitation_req_to_go(dev, apdev):
         raise Exception("Unexpected number of networks")
     if "[P2P-PERSISTENT]" not in networks[0]['flags']:
         raise Exception("Not the persistent group data")
-    if "OK" not in dev[0].global_request("P2P_GROUP_ADD persistent=" + networks[0]['id'] + " freq=" + listen_freq):
-        raise Exception("Could not state GO")
+    dev[0].p2p_start_go(persistent=networks[0]['id'], freq=listen_freq)
 
     dialog_token = 0