mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
tests: Invalid P2P_REJECT command
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
ca9b78add8
commit
edd1dfb2bd
@ -536,6 +536,8 @@ def test_grpform_reject(dev):
|
|||||||
ev = dev[0].wait_global_event(["P2P-GO-NEG-REQUEST"], timeout=15)
|
ev = dev[0].wait_global_event(["P2P-GO-NEG-REQUEST"], timeout=15)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("GO Negotiation timed out")
|
raise Exception("GO Negotiation timed out")
|
||||||
|
if "OK" in dev[0].global_request("P2P_REJECT foo"):
|
||||||
|
raise Exception("Invalid P2P_REJECT accepted")
|
||||||
if "FAIL" in dev[0].global_request("P2P_REJECT " + ev.split(' ')[1]):
|
if "FAIL" in dev[0].global_request("P2P_REJECT " + ev.split(' ')[1]):
|
||||||
raise Exception("P2P_REJECT failed")
|
raise Exception("P2P_REJECT failed")
|
||||||
dev[1].request("P2P_STOP_FIND")
|
dev[1].request("P2P_STOP_FIND")
|
||||||
|
Loading…
Reference in New Issue
Block a user