aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-07-15 10:11:36 (GMT)
committerJouni Malinen <j@w1.fi>2016-07-17 08:08:02 (GMT)
commit502f0ce848e89d8045a09781c8f0c464bcc16161 (patch)
tree2fb002aeb82b4cbe049023be14da66aa1eedbee9
parent6fc562a4066f48e2fe52a7d69a12c5c553fb4f34 (diff)
downloadhostap-502f0ce848e89d8045a09781c8f0c464bcc16161.zip
hostap-502f0ce848e89d8045a09781c8f0c464bcc16161.tar.gz
hostap-502f0ce848e89d8045a09781c8f0c464bcc16161.tar.bz2
tests: More GET_HS20_ICON coverage
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_ap_hs20.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py
index 6597922..13d416c 100644
--- a/tests/hwsim/test_ap_hs20.py
+++ b/tests/hwsim/test_ap_hs20.py
@@ -2880,6 +2880,12 @@ def test_ap_hs20_fetch_osu(dev, apdev):
raise Exception("GET_HS20_ICON 5..15 failed")
if "FAIL" not in dev[2].request("GET_HS20_ICON " + bssid + " w1fi_logo 100000 10"):
raise Exception("Unexpected success of GET_HS20_ICON with too large offset")
+ if "FAIL" not in dev[2].request("GET_HS20_ICON " + bssid + " no_such_logo 0 10"):
+ raise Exception("GET_HS20_ICON for not existing icon succeeded")
+ if "FAIL" not in dev[2].request("GET_HS20_ICON " + bssid + " w1fi_logo 0 3070"):
+ raise Exception("GET_HS20_ICON with too many output bytes to fit the buffer succeeded")
+ if "FAIL" not in dev[2].request("GET_HS20_ICON " + bssid + " w1fi_logo 0 0"):
+ raise Exception("GET_HS20_ICON 0..0 succeeded")
icon = ""
pos = 0
while True: