aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-01-01 16:46:28 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-01 16:46:28 (GMT)
commit984c5b96e3ca0cfcf159b522cff3e2801511b40e (patch)
tree9258754525a0c6fae1d8fe5bae366e0bd9a64b5d
parentc64e3a08a92cdc0765b004a028e8e1071b1087db (diff)
downloadhostap-984c5b96e3ca0cfcf159b522cff3e2801511b40e.zip
hostap-984c5b96e3ca0cfcf159b522cff3e2801511b40e.tar.gz
hostap-984c5b96e3ca0cfcf159b522cff3e2801511b40e.tar.bz2
tests: P2P Presence Request
Signed-hostap: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_p2p_autogo.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py
index aaa85a6..d3fb22b 100644
--- a/tests/hwsim/test_p2p_autogo.py
+++ b/tests/hwsim/test_p2p_autogo.py
@@ -48,6 +48,14 @@ def test_autogo(dev):
res = dev[1].request("BSS RANGE=" + id + "- MASK=0x1")
if "id=" + id not in res:
raise Exception("Could not find BSS entry based on id range")
+
+ # Presence request to increase testing coverage
+ if "FAIL" in dev[1].group_request("P2P_PRESENCE_REQ 30000 102400"):
+ raise Exception("Could not send presence request")
+ ev = dev[1].wait_event(["P2P-PRESENCE-RESPONSE"])
+ if ev is None:
+ raise Exception("Timeout while waiting for Presence Response")
+
dev[0].remove_group()
dev[1].wait_go_ending_session()