diff --git a/tests/hwsim/auth_serv/eap_user.conf b/tests/hwsim/auth_serv/eap_user.conf index edc111b7b..f31fae761 100644 --- a/tests/hwsim/auth_serv/eap_user.conf +++ b/tests/hwsim/auth_serv/eap_user.conf @@ -6,6 +6,7 @@ "pax.user@example.com" PAX 0123456789abcdef0123456789abcdef "psk.user@example.com" PSK 0123456789abcdef0123456789abcdef "vendor-test" VENDOR-TEST "foo" +"osen@example.com" WFA-UNAUTH-TLS "0"* AKA "1"* SIM diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index fcee28709..705469abc 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -1067,3 +1067,18 @@ def test_ap_hs20_deauth_req_bss(dev, apdev): "CTRL-EVENT-CONNECTED"], timeout=5) if ev is not None: raise Exception("Unexpected connection attempt") + +def test_ap_hs20_osen(dev, apdev): + """Hotspot 2.0 OSEN connection""" + params = { 'ssid': "osen", + 'osen': "1", + 'auth_server_addr': "127.0.0.1", + 'auth_server_port': "1812", + 'auth_server_shared_secret': "radius" } + hostapd.add_ap(apdev[0]['ifname'], params) + + dev[0].connect("osen", proto="OSEN", key_mgmt="OSEN", pairwise="CCMP", + group="GTK_NOT_USED", + eap="WFA-UNAUTH-TLS", identity="osen@example.com", + ca_cert="auth_serv/ca.pem", + scan_freq="2412")