aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-10-14 17:48:32 (GMT)
committerJouni Malinen <j@w1.fi>2018-10-14 17:48:32 (GMT)
commit97e27300f49e44cd8fe5b3758376f66bd4d45cf0 (patch)
tree54e8d43ab399284277234ec8660ba4e4120a34da
parentac0ac1ddfdf3a68ee386e39fa9821a4dd0a50f6c (diff)
downloadhostap-master.zip
hostap-master.tar.gz
hostap-master.tar.bz2
tests: Maximum number of cred roaming_consortiumsHEADpendingmaster
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_ap_hs20.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py
index 8a4eccd..600de65 100644
--- a/tests/hwsim/test_ap_hs20.py
+++ b/tests/hwsim/test_ap_hs20.py
@@ -1041,6 +1041,17 @@ def test_ap_hs20_roaming_consortiums_match(dev, apdev):
raise Exception("Timeout on already-connected event")
dev[0].remove_cred(id)
+def test_ap_hs20_max_roaming_consortiums(dev, apdev):
+ """Maximum number of cred roaming_consortiums"""
+ id = dev[0].add_cred()
+ consortium = (36*",ffffff")[1:]
+ if "OK" not in dev[0].request('SET_CRED %d roaming_consortiums "%s"' % (id, consortium)):
+ raise Exception("Maximum number of consortium OIs rejected")
+ consortium = (37*",ffffff")[1:]
+ if "FAIL" not in dev[0].request('SET_CRED %d roaming_consortiums "%s"' % (id, consortium)):
+ raise Exception("Over maximum number of consortium OIs accepted")
+ dev[0].remove_cred(id)
+
def test_ap_hs20_roaming_consortium_invalid(dev, apdev):
"""Hotspot 2.0 connection and invalid roaming consortium ANQP-element"""
bssid = apdev[0]['bssid']