From 59f8a3c69d69b6ddbccd0468d8199dfc0527f354 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 29 Oct 2013 14:23:31 +0200 Subject: [PATCH] tests: Add external_sim test cases with roaming network test_ap_hs20_ext_sim_roaming is otherwise identical with test_ap_hs20_ext_sim, but the network is operated by a roaming partner. Signed-hostap: Jouni Malinen --- tests/hwsim/test_ap_hs20.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 5466866a4..72e12251a 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -147,3 +147,21 @@ def test_ap_hs20_ext_sim(dev, apdev): interworking_select(dev[0], "home") interworking_ext_sim_connect(dev[0], bssid, "SIM") check_sp_type(dev[0], "home") + +def test_ap_hs20_ext_sim_roaming(dev, apdev): + """Hotspot 2.0 with external SIM processing in roaming network""" + if not hlr_auc_gw_available(): + return "skip" + bssid = apdev[0]['bssid'] + params = hs20_ap_params() + params['hessid'] = bssid + params['anqp_3gpp_cell_net'] = "244,91;310,026;232,01;234,56" + params['domain_name'] = "wlan.mnc091.mcc244.3gppnetwork.org" + hostapd.add_ap(apdev[0]['ifname'], params) + + dev[0].hs20_enable() + dev[0].request("SET external_sim 1") + dev[0].add_cred_values(imsi="23201-0000000000", eap="SIM") + interworking_select(dev[0], "roaming") + interworking_ext_sim_connect(dev[0], bssid, "SIM") + check_sp_type(dev[0], "roaming")