tests: Make FILS+FT test cases more robust
Wait for hostapd to report completion of association before running the data connectivity check. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
5a563a3d34
commit
95337647aa
1 changed files with 2 additions and 0 deletions
|
@ -1904,6 +1904,7 @@ def run_fils_and_ft_setup(dev, apdev, params, key_mgmt):
|
||||||
eap="PSK", identity="psk.user@example.com",
|
eap="PSK", identity="psk.user@example.com",
|
||||||
password_hex="0123456789abcdef0123456789abcdef",
|
password_hex="0123456789abcdef0123456789abcdef",
|
||||||
erp="1", scan_freq="2412")
|
erp="1", scan_freq="2412")
|
||||||
|
hapd.wait_sta()
|
||||||
hwsim_utils.test_connectivity(dev[0], hapd)
|
hwsim_utils.test_connectivity(dev[0], hapd)
|
||||||
|
|
||||||
dev[0].request("DISCONNECT")
|
dev[0].request("DISCONNECT")
|
||||||
|
@ -1950,6 +1951,7 @@ def run_fils_and_ft_setup(dev, apdev, params, key_mgmt):
|
||||||
raise Exception("Authentication failed")
|
raise Exception("Authentication failed")
|
||||||
if "EVENT-ASSOC-REJECT" in ev:
|
if "EVENT-ASSOC-REJECT" in ev:
|
||||||
raise Exception("Association failed")
|
raise Exception("Association failed")
|
||||||
|
hapd.wait_sta()
|
||||||
hwsim_utils.test_connectivity(dev[0], hapd)
|
hwsim_utils.test_connectivity(dev[0], hapd)
|
||||||
|
|
||||||
er.disable()
|
er.disable()
|
||||||
|
|
Loading…
Reference in a new issue