]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify HS 2.0 OSEN connection
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 26 Feb 2014 16:10:08 +0000 (18:10 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 26 Feb 2014 16:10:08 +0000 (18:10 +0200)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/auth_serv/eap_user.conf
tests/hwsim/test_ap_hs20.py

index edc111b7bd5ec017d781969be38322e5974c6beb..f31fae7611736083ff549f0bdf604eaa2d18677b 100644 (file)
@@ -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
index fcee287095a856c7df90e0bc9646c46fde3685ef..705469abcfb7a7cedbc1b6319cf1006171c9dea6 100644 (file)
@@ -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")