Browse Source

tests: Verify HS 2.0 OSEN connection

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen 11 years ago
parent
commit
9e709315d9
2 changed files with 16 additions and 0 deletions
  1. 1 0
      tests/hwsim/auth_serv/eap_user.conf
  2. 15 0
      tests/hwsim/test_ap_hs20.py

+ 1 - 0
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

+ 15 - 0
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")