]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix MBO ANQP cellular data preference query
authorAvraham Stern <avraham.stern@intel.com>
Mon, 6 Mar 2017 12:59:55 +0000 (14:59 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 10 Mar 2017 14:53:14 +0000 (16:53 +0200)
The cellular data preference ANQP element subtype is now 2, so
fix the command to query the MBO cellular data preference.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
tests/hwsim/test_gas.py

index 6b87219077f95fcfd6aacd97e0cd916e46ef2a43..586d3b4a1b2faf9a57bd3263729a803c013573c4 100644 (file)
@@ -422,7 +422,7 @@ def test_gas_anqp_get(dev, apdev):
         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"):
+    if "OK" not in dev[0].request("ANQP_GET " + bssid + " 272,mbo:2"):
         raise Exception("ANQP_GET command failed (2)")
 
     ev = dev[0].wait_event(["GAS-QUERY-START"], timeout=5)