tests: Verify TEMP-DISABLED flag in HS 2.0 deauth req

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-03-01 11:57:07 +02:00
parent 16ab63f4dd
commit c61e5a822c

View file

@ -1339,6 +1339,8 @@ def test_ap_hs20_deauth_req_ess(dev, apdev):
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"]) ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"])
if ev is None: if ev is None:
raise Exception("Timeout on disconnection") 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", ev = dev[0].wait_event(["SME: Trying to authenticate",
"Trying to associate", "Trying to associate",
"CTRL-EVENT-CONNECTED"], timeout=5) "CTRL-EVENT-CONNECTED"], timeout=5)
@ -1364,6 +1366,8 @@ def test_ap_hs20_deauth_req_bss(dev, apdev):
raise Exception("Timeout on disconnection") raise Exception("Timeout on disconnection")
if "reason=4" not in ev: if "reason=4" not in ev:
raise Exception("Unexpected disconnection reason") 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", ev = dev[0].wait_event(["SME: Trying to authenticate",
"Trying to associate", "Trying to associate",
"CTRL-EVENT-CONNECTED"], timeout=5) "CTRL-EVENT-CONNECTED"], timeout=5)