mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 11:48:23 -05:00
tests: Additional P2P_PRESENCE_REQ coverage
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
d9f3bb1ad6
commit
bf1b59731a
@ -56,9 +56,23 @@ def test_autogo(dev):
|
|||||||
raise Exception("P2P flag missing from scan results: " + res)
|
raise Exception("P2P flag missing from scan results: " + res)
|
||||||
|
|
||||||
# Presence request to increase testing coverage
|
# Presence request to increase testing coverage
|
||||||
|
if "FAIL" not in dev[1].group_request("P2P_PRESENCE_REQ 30000"):
|
||||||
|
raise Exception("Invald P2P_PRESENCE_REQ accepted")
|
||||||
|
if "FAIL" not in dev[1].group_request("P2P_PRESENCE_REQ 30000 102400 30001"):
|
||||||
|
raise Exception("Invald P2P_PRESENCE_REQ accepted")
|
||||||
if "FAIL" in dev[1].group_request("P2P_PRESENCE_REQ 30000 102400"):
|
if "FAIL" in dev[1].group_request("P2P_PRESENCE_REQ 30000 102400"):
|
||||||
raise Exception("Could not send presence request")
|
raise Exception("Could not send presence request")
|
||||||
ev = dev[1].wait_event(["P2P-PRESENCE-RESPONSE"])
|
ev = dev[1].wait_event(["P2P-PRESENCE-RESPONSE"])
|
||||||
|
if ev is None:
|
||||||
|
raise Exception("Timeout while waiting for Presence Response")
|
||||||
|
if "FAIL" in dev[1].group_request("P2P_PRESENCE_REQ 30000 102400 20000 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")
|
||||||
|
if "FAIL" in dev[1].group_request("P2P_PRESENCE_REQ"):
|
||||||
|
raise Exception("Could not send presence request")
|
||||||
|
ev = dev[1].wait_event(["P2P-PRESENCE-RESPONSE"])
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Timeout while waiting for Presence Response")
|
raise Exception("Timeout while waiting for Presence Response")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user