From f1a36a53a5ea9573c0579e4f03ce28304a71e5d6 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 2 Jul 2014 15:51:20 +0300 Subject: [PATCH] tests: update_identifier in network block Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_hs20.py | 16 ++++++++++++++++ tests/hwsim/wpasupplicant.py | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index a61fae275..9fbbebb43 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -2038,3 +2038,19 @@ def test_ap_hs20_remediation_sql(dev, apdev, params): finally: os.remove(dbfile) + +def test_ap_hs20_external_selection(dev, apdev): + """Hotspot 2.0 connection using external network selection and creation""" + bssid = apdev[0]['bssid'] + params = hs20_ap_params() + params['hessid'] = bssid + params['disable_dgaf'] = '1' + hostapd.add_ap(apdev[0]['ifname'], params) + + dev[0].hs20_enable() + dev[0].connect("test-hs20", proto="RSN", key_mgmt="WPA-EAP", eap="TTLS", + identity="hs20-test", password="password", + ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2", + scan_freq="2412", update_identifier="54321") + if dev[0].get_status_field("hs20") != "2": + raise Exception("Unexpected hs20 indication") diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index a2a7b67f0..5e24e2070 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -668,7 +668,7 @@ class WpaSupplicant: "wpa_ptk_rekey", "disable_ht", "disable_vht", "bssid", "disable_max_amsdu", "ampdu_factor", "ampdu_density", "disable_ht40", "disable_sgi", "disable_ldpc", - "ht40_intolerant" ] + "ht40_intolerant", "update_identifier" ] for field in not_quoted: if field in kwargs and kwargs[field]: self.set_network(id, field, kwargs[field])