]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use full prefix of the P2P-GO-NEG-FAILURE
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 31 Dec 2015 20:40:14 +0000 (22:40 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 31 Dec 2015 20:41:21 +0000 (22:41 +0200)
Couple of waits for this event used the "GO-NEG-FAILURE" string instead
of the full event prefix. While this worked in the tests due to a
substring matching, it is better to use the full event prefix here.

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

index f13f0a3e2847358457c3f11409f80d8649f8c1a0..81642ac8091c166f0c1e7797352066d0f885ef81 100644 (file)
@@ -518,7 +518,7 @@ def test_grpform_reject(dev):
         raise Exception("P2P_REJECT failed")
     dev[1].request("P2P_STOP_FIND")
     dev[1].p2p_go_neg_init(addr0, None, "pbc")
-    ev = dev[1].wait_global_event(["GO-NEG-FAILURE"], timeout=10)
+    ev = dev[1].wait_global_event(["P2P-GO-NEG-FAILURE"], timeout=10)
     if ev is None:
         raise Exception("Rejection not reported")
     if "status=11" not in ev:
@@ -590,7 +590,7 @@ def test_go_neg_two_peers(dev):
     if ev is None:
         raise Exception("timeout on GO Neg RX event")
     dev[2].request("P2P_CONNECT " + addr0 + " pbc")
-    ev = dev[2].wait_global_event(["GO-NEG-FAILURE"], timeout=10)
+    ev = dev[2].wait_global_event(["P2P-GO-NEG-FAILURE"], timeout=10)
     if ev is None:
         raise Exception("Rejection not reported")
     if "status=5" not in ev: