aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-10-23 13:33:25 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-23 13:33:25 (GMT)
commitfbb79f94ebce752fd34f79ba9479629968f4bf1c (patch)
tree5497cf31d2d69b2edef2e1be29c55420564bc13e /tests
parent7475d299abd623e0759a527be23552d639013ea1 (diff)
downloadhostap-fbb79f94ebce752fd34f79ba9479629968f4bf1c.zip
hostap-fbb79f94ebce752fd34f79ba9479629968f4bf1c.tar.gz
hostap-fbb79f94ebce752fd34f79ba9479629968f4bf1c.tar.bz2
tests: Allow time for go_neg_pbc() GO Neg Resp to go out
It was possible for the not-pre-authorized GO Negotiation case to end up starting new GO Negotiation before the GO Negotiation Response frame with status=1 was transmitted. While this works for group formation, it could reduce test coverage for the common case where that response is received. At a small sleep to make it less likely for this unexpected sequence to happen during testing. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_p2p_grpform.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py
index 97c2f5c..36a9e82 100644
--- a/tests/hwsim/test_p2p_grpform.py
+++ b/tests/hwsim/test_p2p_grpform.py
@@ -123,6 +123,9 @@ def go_neg_pbc(i_dev, r_dev, i_intent=None, r_intent=None, i_freq=None, r_freq=N
if ev is None:
raise Exception("GO Negotiation timed out")
r_dev.dump_monitor()
+ # Allow some time for the GO Neg Resp to go out before initializing new
+ # GO Negotiation.
+ time.sleep(0.2)
logger.debug("Re-initiate GO Negotiation from r_dev")
r_res = r_dev.p2p_go_neg_init(i_dev.p2p_dev_addr(), None, "pbc",
go_intent=r_intent, timeout=20, freq=r_freq)