From 37ffe7c568049c541b84c1d3c28a845c5afe561e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 10 May 2014 16:17:41 +0300 Subject: [PATCH] tests: HS 2.0 with FT Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_hs20.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index a0a5c1125..d1dadd037 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -1921,3 +1921,24 @@ def test_ap_hs20_fetch_osu(dev, apdev): raise Exception("Timeout on icon fetch") if "Icon Binary File" not in ev: raise Exception("Unexpected ANQP element") + +def test_ap_hs20_ft(dev, apdev): + """Hotspot 2.0 connection with FT""" + bssid = apdev[0]['bssid'] + params = hs20_ap_params() + params['wpa_key_mgmt'] = "FT-EAP" + params['nas_identifier'] = "nas1.w1.fi" + params['r1_key_holder'] = "000102030405" + params["mobility_domain"] = "a1b2" + params["reassociation_deadline"] = "1000" + hostapd.add_ap(apdev[0]['ifname'], params) + + dev[0].hs20_enable() + id = dev[0].add_cred_values({ 'realm': "example.com", + 'username': "hs20-test", + 'password': "password", + 'ca_cert': "auth_serv/ca.pem", + 'domain': "example.com", + 'update_identifier': "1234" }) + interworking_select(dev[0], bssid, "home", freq="2412") + interworking_connect(dev[0], bssid, "TTLS")