From 4b572e3ac112afe94134e690f9975103521df8e0 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 25 Feb 2014 23:16:54 +0200 Subject: [PATCH] tests: Verify Interworking network selection with no auth params Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_hs20.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 09b95875c..a982252d8 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -307,6 +307,18 @@ def test_ap_hs20_select(dev, apdev): dev[0].set_cred_quoted(id, "realm", "no.match.example.com"); interworking_select(dev[0], bssid, no_match=True, freq="2412") + bssid2 = apdev[1]['bssid'] + params = hs20_ap_params() + params['nai_realm'] = [ "0,example.org,21" ] + params['hessid'] = bssid2 + params['domain_name'] = "example.org" + hostapd.add_ap(apdev[1]['ifname'], params) + dev[0].remove_cred(id) + id = dev[0].add_cred_values({ 'realm': "example.org", 'username': "test", + 'password': "secret", + 'domain': "example.org" }) + interworking_select(dev[0], bssid2, "home", freq="2412") + def hs20_simulated_sim(dev, ap, method): bssid = ap['bssid'] params = hs20_ap_params()