]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Additional coverage for P2P_EXT_LISTEN
authorJouni Malinen <j@w1.fi>
Wed, 10 Dec 2014 21:47:04 +0000 (23:47 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 11 Dec 2014 13:18:11 +0000 (15:18 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_p2p_grpform.py

index c27eaeb67531499f08e99a7738de3ad6d348f9b4..86070e33c115f3a55c4f810873b61c4cfb7b87ef 100644 (file)
@@ -254,6 +254,8 @@ def test_grpform_pd(dev):
 def test_grpform_ext_listen(dev):
     """P2P group formation with extended listen timing enabled"""
     try:
+        if "FAIL" not in dev[0].global_request("P2P_EXT_LISTEN 100"):
+            raise Exception("Invalid P2P_EXT_LISTEN accepted")
         if "OK" not in dev[0].global_request("P2P_EXT_LISTEN 100 50000"):
             raise Exception("Failed to set extended listen timing")
         if "OK" not in dev[1].global_request("P2P_EXT_LISTEN 200 40000"):