]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify TEMP-DISABLED flag in HS 2.0 deauth req
authorJouni Malinen <j@w1.fi>
Sat, 1 Mar 2014 09:57:07 +0000 (11:57 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 08:35:34 +0000 (10:35 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_hs20.py

index f199941bd2849bdd27af14df94ef38b8601f7215..7e4ffda9f54719b15ad9c18c03f79a8a7468871b 100644 (file)
@@ -1339,6 +1339,8 @@ def test_ap_hs20_deauth_req_ess(dev, apdev):
     ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"])
     if ev is None:
         raise Exception("Timeout on disconnection")
+    if "[TEMP-DISABLED]" not in dev[0].list_networks()[0]['flags']:
+        raise Exception("Network not marked temporarily disabled")
     ev = dev[0].wait_event(["SME: Trying to authenticate",
                             "Trying to associate",
                             "CTRL-EVENT-CONNECTED"], timeout=5)
@@ -1364,6 +1366,8 @@ def test_ap_hs20_deauth_req_bss(dev, apdev):
         raise Exception("Timeout on disconnection")
     if "reason=4" not in ev:
         raise Exception("Unexpected disconnection reason")
+    if "[TEMP-DISABLED]" not in dev[0].list_networks()[0]['flags']:
+        raise Exception("Network not marked temporarily disabled")
     ev = dev[0].wait_event(["SME: Trying to authenticate",
                             "Trying to associate",
                             "CTRL-EVENT-CONNECTED"], timeout=5)