]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: INTERWORKING_CONNECT with invalid parameter
authorJouni Malinen <j@w1.fi>
Wed, 10 Dec 2014 23:29:33 +0000 (01:29 +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_ap_hs20.py

index 335c1cd61fed537f988c88c3548be6451b38db11..e3137e755475286941f0c8380909db8d58bdcdd3 100644 (file)
@@ -949,6 +949,11 @@ def test_ap_hs20_disallow_aps(dev, apdev):
     if "FAIL" not in ret:
         raise Exception("INTERWORKING_CONNECT to disallowed BSS not rejected")
 
+    if "FAIL" not in dev[0].request("INTERWORKING_CONNECT foo"):
+        raise Exception("Invalid INTERWORKING_CONNECT not rejected")
+    if "FAIL" not in dev[0].request("INTERWORKING_CONNECT 00:11:22:33:44:55"):
+        raise Exception("Invalid INTERWORKING_CONNECT not rejected")
+
 def policy_test(dev, ap, values, only_one=True):
     dev.dump_monitor()
     if ap: