aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-12-18 11:01:05 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-18 11:01:49 (GMT)
commit1a4b4c84661a4cb1f6f41396bddfa1299f4da911 (patch)
treeccaf4ea46ee380eaf9c94f34f68f0fdd2830f994
parent1a73f53a65cd52d92dc4d0ee8890ed9a6d457505 (diff)
downloadhostap-1a4b4c84661a4cb1f6f41396bddfa1299f4da911.zip
hostap-1a4b4c84661a4cb1f6f41396bddfa1299f4da911.tar.gz
hostap-1a4b4c84661a4cb1f6f41396bddfa1299f4da911.tar.bz2
tests: Update gas_anqp_capab_list and gas_anqp_extra_elements
The FILS ANQP-element changes made couple of the generic ANQP test steps fail. Update this to ignore the special FILS cases. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_gas.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py
index e72e1ef..620c447 100644
--- a/tests/hwsim/test_gas.py
+++ b/tests/hwsim/test_gas.py
@@ -1125,7 +1125,7 @@ def test_gas_anqp_extra_elements(dev, apdev):
"266:" + civic_loc,
"262:1122334455",
"267:" + public_id,
- "275:01020304",
+ "279:01020304",
"60000:01",
"299:0102" ] }
hapd = hostapd.add_ap(apdev[0], params)
@@ -1174,10 +1174,10 @@ def test_gas_anqp_extra_elements(dev, apdev):
if bss['anqp[267]'] != public_id:
raise Exception("Unexpected AP Location Public Identifier ANQP-element value: " + bss['anqp[267]'])
- if 'anqp[275]' not in bss:
- raise Exception("ANQP-element Info ID 275 not seen")
- if bss['anqp[275]'] != "01020304":
- raise Exception("Unexpected AP ANQP-element Info ID 299 value: " + bss['anqp[299]'])
+ if 'anqp[279]' not in bss:
+ raise Exception("ANQP-element Info ID 279 not seen")
+ if bss['anqp[279]'] != "01020304":
+ raise Exception("Unexpected AP ANQP-element Info ID 279 value: " + bss['anqp[279]'])
if 'anqp[299]' not in bss:
raise Exception("ANQP-element Info ID 299 not seen")
@@ -1554,5 +1554,7 @@ def test_gas_anqp_capab_list(dev, apdev):
val = val[4:]
logger.info("InfoIDs: " + str(ids))
for i in range(257, 300):
+ if i in [ 273, 274 ]:
+ continue
if i not in ids:
raise Exception("Unexpected Capability List ANQP-element value (missing %d): %s" % (i, bss['anqp_capability_list']))