aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-07-04 15:54:26 (GMT)
committerJouni Malinen <j@w1.fi>2016-07-04 15:54:26 (GMT)
commit8e590f02bd3a82701a9c084c2d60b76226ff747c (patch)
treedec654614c65e3c8a7ee0e27ed3b2319031a6e4a
parent6b16e073d3dba28e7311cf70d85e9e0470c3db54 (diff)
downloadhostap-8e590f02bd3a82701a9c084c2d60b76226ff747c.zip
hostap-8e590f02bd3a82701a9c084c2d60b76226ff747c.tar.gz
hostap-8e590f02bd3a82701a9c084c2d60b76226ff747c.tar.bz2
tests: Hotspot 2.0 and connect attempt without matching cred
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_ap_hs20.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py
index 4ba72cb..9482ac4 100644
--- a/tests/hwsim/test_ap_hs20.py
+++ b/tests/hwsim/test_ap_hs20.py
@@ -4530,6 +4530,26 @@ def test_ap_hs20_no_rsn_connect(dev, apdev):
if "FAIL" not in dev[0].request("INTERWORKING_CONNECT " + bssid):
raise Exception("Unexpected INTERWORKING_CONNECT success")
+def test_ap_hs20_no_match_connect(dev, apdev):
+ """Hotspot 2.0 and connect attempt without matching cred"""
+ bssid = apdev[0]['bssid']
+ params = hs20_ap_params()
+ hapd = hostapd.add_ap(apdev[0], params)
+
+ dev[0].hs20_enable()
+ dev[0].scan_for_bss(bssid, freq="2412")
+
+ id = dev[0].add_cred_values({ 'realm': "example.org",
+ 'username': "test",
+ 'password': "secret",
+ 'domain': "example.org",
+ 'roaming_consortium': "112234",
+ 'eap': 'TTLS' })
+
+ interworking_select(dev[0], bssid, freq=2412, no_match=True)
+ if "FAIL" not in dev[0].request("INTERWORKING_CONNECT " + bssid):
+ raise Exception("Unexpected INTERWORKING_CONNECT success")
+
def test_ap_hs20_multiple_home_cred(dev, apdev):
"""Hotspot 2.0 and select with multiple matching home credentials"""
bssid = apdev[0]['bssid']