From: Jouni Malinen Date: Sat, 1 Mar 2014 09:57:07 +0000 (+0200) Subject: tests: Verify TEMP-DISABLED flag in HS 2.0 deauth req X-Git-Tag: hostap_2_2~707 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c61e5a822cacbc7b56b629b931617901fae00572;p=thirdparty%2Fhostap.git tests: Verify TEMP-DISABLED flag in HS 2.0 deauth req Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index f199941bd..7e4ffda9f 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -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)