aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-09-29 15:06:49 (GMT)
committerJouni Malinen <j@w1.fi>2016-09-30 19:45:03 (GMT)
commit09b812c95221520f179dd732528b4edc6cfc1ebf (patch)
treec3bc85422cd9104a5f8157a07b7dcc07f79d825d /tests
parent8f4791749302bb3a89b2baef19fc5e6075ec3845 (diff)
downloadhostap-09b812c95221520f179dd732528b4edc6cfc1ebf.zip
hostap-09b812c95221520f179dd732528b4edc6cfc1ebf.tar.gz
hostap-09b812c95221520f179dd732528b4edc6cfc1ebf.tar.bz2
tests: Extend gas_anqp_get to cover MBO cases with non-MBO AP
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_gas.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py
index 327f2f8..2ac610f 100644
--- a/tests/hwsim/test_gas.py
+++ b/tests/hwsim/test_gas.py
@@ -365,6 +365,18 @@ def test_gas_anqp_get(dev, apdev):
if ev is None or "WAN Metrics" not in ev:
raise Exception("Did not receive WAN Metrics")
+ logger.info("Attempt an MBO request with an AP that does not support MBO")
+ if "OK" not in dev[0].request("ANQP_GET " + bssid + " 272,mbo:1"):
+ raise Exception("ANQP_GET command failed (2)")
+
+ ev = dev[0].wait_event(["GAS-QUERY-START"], timeout=5)
+ if ev is None:
+ raise Exception("GAS query start timed out (2)")
+
+ ev = dev[0].wait_event(["GAS-QUERY-DONE"], timeout=10)
+ if ev is None:
+ raise Exception("GAS query timed out (2)")
+
cmds = [ "",
"foo",
"00:11:22:33:44:55 258,hs20:-1",
@@ -373,6 +385,9 @@ def test_gas_anqp_get(dev, apdev):
"00:11:22:33:44:55 hs20:-1",
"00:11:22:33:44:55 hs20:0",
"00:11:22:33:44:55 hs20:32",
+ "00:11:22:33:44:55 mbo:-1",
+ "00:11:22:33:44:55 mbo:0",
+ "00:11:22:33:44:55 mbo:999",
"00:11:22:33:44:55",
"00:11:22:33:44:55 ",
"00:11:22:33:44:55 0",