tests: Verify that home operator is preferred over roaming operator
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
10b3cc6791
commit
cfa57df68d
1 changed files with 17 additions and 0 deletions
|
@ -762,6 +762,23 @@ def default_cred():
|
||||||
'username': "hs20-test",
|
'username': "hs20-test",
|
||||||
'password': "password" }
|
'password': "password" }
|
||||||
|
|
||||||
|
def test_ap_hs20_prefer_home(dev, apdev):
|
||||||
|
"""Hotspot 2.0 required roaming consortium"""
|
||||||
|
params = hs20_ap_params()
|
||||||
|
params['domain_name'] = "example.org"
|
||||||
|
hostapd.add_ap(apdev[0]['ifname'], params)
|
||||||
|
|
||||||
|
params = hs20_ap_params()
|
||||||
|
params['ssid'] = "test-hs20-other"
|
||||||
|
params['domain_name'] = "example.com"
|
||||||
|
hostapd.add_ap(apdev[1]['ifname'], params)
|
||||||
|
|
||||||
|
values = default_cred()
|
||||||
|
values['domain'] = "example.com"
|
||||||
|
policy_test(dev[0], apdev[1], values, only_one=False)
|
||||||
|
values['domain'] = "example.org"
|
||||||
|
policy_test(dev[0], apdev[0], values, only_one=False)
|
||||||
|
|
||||||
def test_ap_hs20_req_roaming_consortium(dev, apdev):
|
def test_ap_hs20_req_roaming_consortium(dev, apdev):
|
||||||
"""Hotspot 2.0 required roaming consortium"""
|
"""Hotspot 2.0 required roaming consortium"""
|
||||||
params = hs20_ap_params()
|
params = hs20_ap_params()
|
||||||
|
|
Loading…
Reference in a new issue