events = []
while True:
ev = dev.wait_event(["INTERWORKING-AP", "INTERWORKING-NO-MATCH",
+ "INTERWORKING-BLACKLISTED",
"INTERWORKING-SELECTED"], timeout=15)
if ev is None:
raise Exception("Network selection timed out")
values = default_cred()
values['excluded_ssid'] = "test-hs20"
- policy_test(dev[0], apdev[1], values)
+ events = policy_test(dev[0], apdev[1], values)
+ ev = [e for e in events if "INTERWORKING-BLACKLISTED " + apdev[0]['bssid'] in e]
+ if len(ev) != 1:
+ raise Exception("Excluded network not reported")
values['excluded_ssid'] = "test-hs20-other"
- policy_test(dev[0], apdev[0], values)
+ events = policy_test(dev[0], apdev[0], values)
+ ev = [e for e in events if "INTERWORKING-BLACKLISTED " + apdev[1]['bssid'] in e]
+ if len(ev) != 1:
+ raise Exception("Excluded network not reported")
def test_ap_hs20_roam_to_higher_prio(dev, apdev):
"""Hotspot 2.0 and roaming from current to higher priority network"""