aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-12-31 20:40:14 (GMT)
committerJouni Malinen <j@w1.fi>2015-12-31 20:41:21 (GMT)
commitd75fcb97605e2dc4c6e49df4e7e9f7fe1a258667 (patch)
tree4a34577b1e1d605139fcb2fd594a864a7e4dc2ad
parente4ab0d90341397ee5884e8dce5a689982c3b8f1b (diff)
downloadhostap-d75fcb97605e2dc4c6e49df4e7e9f7fe1a258667.zip
hostap-d75fcb97605e2dc4c6e49df4e7e9f7fe1a258667.tar.gz
hostap-d75fcb97605e2dc4c6e49df4e7e9f7fe1a258667.tar.bz2
tests: Use full prefix of the P2P-GO-NEG-FAILURE
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>
-rw-r--r--tests/hwsim/test_p2p_grpform.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py
index f13f0a3..81642ac 100644
--- a/tests/hwsim/test_p2p_grpform.py
+++ b/tests/hwsim/test_p2p_grpform.py
@@ -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: