tests: Verify HS 2.0 OSEN connection
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
5e32f8256f
commit
9e709315d9
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue