From: Jouni Malinen Date: Mon, 8 Dec 2014 16:25:05 +0000 (+0200) Subject: tests: P2P_LISTEN while interface is disabled X-Git-Tag: hostap_2_4~860 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6da4a0af92955665cf7a662654915947ef546c6b;p=thirdparty%2Fhostap.git tests: P2P_LISTEN while interface is disabled Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_rfkill.py b/tests/hwsim/test_rfkill.py index 743bfcc98..5043dea5f 100644 --- a/tests/hwsim/test_rfkill.py +++ b/tests/hwsim/test_rfkill.py @@ -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])