mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
tests: P2P_LISTEN while interface is disabled
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
450e584f04
commit
6da4a0af92
@ -99,6 +99,10 @@ def test_rfkill_autogo(dev, apdev):
|
||||
raise Exception("Group removal not reported")
|
||||
if "reason=UNAVAILABLE" not in ev:
|
||||
raise Exception("Unexpected group removal reason: " + ev)
|
||||
if "FAIL" not in dev[0].request("P2P_LISTEN 1"):
|
||||
raise Exception("P2P_LISTEN accepted unexpectedly")
|
||||
if "FAIL" not in dev[0].request("P2P_LISTEN"):
|
||||
raise Exception("P2P_LISTEN accepted unexpectedly")
|
||||
|
||||
logger.info("rfkill block 1")
|
||||
subprocess.call(['sudo', 'rfkill', 'block', id1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user