]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: P2P_LISTEN while interface is disabled
authorJouni Malinen <j@w1.fi>
Mon, 8 Dec 2014 16:25:05 +0000 (18:25 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 8 Dec 2014 19:13:17 +0000 (21:13 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_rfkill.py

index 743bfcc981dd9d3a1e1d137a019e507b0abf1fa8..5043dea5f5799ad779d892509b1b65dc9f179332 100644 (file)
@@ -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])