From cfa57df68de6d3a42da38e4b7207adb710c420a3 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 27 Feb 2014 19:34:34 +0200 Subject: [PATCH] tests: Verify that home operator is preferred over roaming operator Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_hs20.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 342ecb55d..d9103f284 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -762,6 +762,23 @@ def default_cred(): 'username': "hs20-test", '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): """Hotspot 2.0 required roaming consortium""" params = hs20_ap_params()