tests: INTERWORKING_SELECT blocking SCAN

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-03-20 14:39:16 +02:00 committed by Jouni Malinen
parent 9772af66ba
commit 5f6ce5b503

View file

@ -2102,6 +2102,25 @@ def test_ap_hs20_network_preference4(dev, apdev):
if bssid2 not in ev:
raise Exception("Unexpected network selected")
def test_ap_hs20_interworking_select_blocking_scan(dev, apdev):
"""Ongoing INTERWORKING_SELECT blocking SCAN"""
bssid = apdev[0]['bssid']
params = hs20_ap_params()
hostapd.add_ap(apdev[0]['ifname'], params)
dev[0].hs20_enable()
values = { 'realm': "example.com",
'username': "hs20-test",
'password': "password",
'domain': "example.com" }
dev[0].add_cred_values(values)
dev[0].scan_for_bss(bssid, freq="2412")
dev[0].request("INTERWORKING_SELECT auto freq=2412")
if "FAIL-BUSY" not in dev[0].request("SCAN"):
raise Exception("Unexpected SCAN command result")
dev[0].wait_connected(timeout=15)
def test_ap_hs20_fetch_osu(dev, apdev):
"""Hotspot 2.0 OSU provider and icon fetch"""
bssid = apdev[0]['bssid']