From edd1dfb2bdade5a146926203415fd26a86a78ec5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 8 Dec 2014 19:34:49 +0200 Subject: [PATCH] tests: Invalid P2P_REJECT command Signed-off-by: Jouni Malinen --- tests/hwsim/test_p2p_grpform.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py index 880828609..c27eaeb67 100644 --- a/tests/hwsim/test_p2p_grpform.py +++ b/tests/hwsim/test_p2p_grpform.py @@ -536,6 +536,8 @@ def test_grpform_reject(dev): ev = dev[0].wait_global_event(["P2P-GO-NEG-REQUEST"], timeout=15) if ev is None: 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]): raise Exception("P2P_REJECT failed") dev[1].request("P2P_STOP_FIND")