tests: Make pmksa_cache_preauth_auto more robust
It is fine for the station to associate with either AP in this test case, so do not force AP side connection check with apdev[0]. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
a9b4e558af
commit
73dbcd7951
2 changed files with 5 additions and 4 deletions
|
@ -149,6 +149,7 @@ def eap_connect(dev, hapd, method, identity,
|
||||||
expect_cert_error=expect_cert_error)
|
expect_cert_error=expect_cert_error)
|
||||||
if expect_failure:
|
if expect_failure:
|
||||||
return id
|
return id
|
||||||
|
if hapd:
|
||||||
ev = hapd.wait_event(["AP-STA-CONNECTED"], timeout=5)
|
ev = hapd.wait_event(["AP-STA-CONNECTED"], timeout=5)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("No connection event received from hostapd")
|
raise Exception("No connection event received from hostapd")
|
||||||
|
|
|
@ -455,7 +455,7 @@ def run_pmksa_cache_preauth_auto(dev, apdev):
|
||||||
hapd.cmd_execute(['ip', 'link', 'set', 'dev', 'ap-br0', 'up'])
|
hapd.cmd_execute(['ip', 'link', 'set', 'dev', 'ap-br0', 'up'])
|
||||||
hapd2 = hostapd.add_ap(apdev[1], params)
|
hapd2 = hostapd.add_ap(apdev[1], params)
|
||||||
|
|
||||||
eap_connect(dev[0], hapd, "PAX", "pax.user@example.com",
|
eap_connect(dev[0], None, "PAX", "pax.user@example.com",
|
||||||
password_hex="0123456789abcdef0123456789abcdef")
|
password_hex="0123456789abcdef0123456789abcdef")
|
||||||
|
|
||||||
found = False
|
found = False
|
||||||
|
|
Loading…
Reference in a new issue