aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Spinadel <david.spinadel@intel.com>2016-04-06 16:42:05 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-16 18:05:39 (GMT)
commit56de6fe4fe1ee373776059ef668fbc83624195a6 (patch)
tree47fda0d517181fd2bb2a21488cf218e751dbee99 /tests
parent6a4f0ed7886a38ca99a682cedec21a405110b0c8 (diff)
downloadhostap-56de6fe4fe1ee373776059ef668fbc83624195a6.zip
hostap-56de6fe4fe1ee373776059ef668fbc83624195a6.tar.gz
hostap-56de6fe4fe1ee373776059ef668fbc83624195a6.tar.bz2
tests: Update NEIGHBOR_REP_REQUEST format
Use quotation marks to match the new SSID encoding format in the NEIGHBOR_REP_REQUEST command. In this specific test case, the exact SSID value did not make any difference for behavior. The previous version ended up getting decoded as a hexstring after the NEIGHBOR_REP_REQUEST format change. The new version goes back to the ASCII string version of "abcdef". Signed-off-by: David Spinadel <david.spinadel@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wpas_ctrl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py
index 8bbacd2..48421d3 100644
--- a/tests/hwsim/test_wpas_ctrl.py
+++ b/tests/hwsim/test_wpas_ctrl.py
@@ -1278,7 +1278,7 @@ def test_wpas_ctrl_neighbor_rep_req(dev, apdev):
dev[0].connect("test", key_mgmt="NONE", scan_freq="2412")
if "FAIL" not in dev[0].request("NEIGHBOR_REP_REQUEST"):
raise Exception("Request succeeded unexpectedly")
- if "FAIL" not in dev[0].request("NEIGHBOR_REP_REQUEST ssid=abcdef"):
+ if "FAIL" not in dev[0].request("NEIGHBOR_REP_REQUEST ssid=\"abcdef\""):
raise Exception("Request succeeded unexpectedly")
dev[0].request("DISCONNECT")
@@ -1300,7 +1300,7 @@ def test_wpas_ctrl_neighbor_rep_req(dev, apdev):
raise Exception("RRM report result not indicated")
logger.info("RRM result: " + ev)
- if "OK" not in dev[0].request("NEIGHBOR_REP_REQUEST ssid=abcdef"):
+ if "OK" not in dev[0].request("NEIGHBOR_REP_REQUEST ssid=\"abcdef\""):
raise Exception("Request failed")
ev = dev[0].wait_event([ "RRM-NEIGHBOR-REP-RECEIVED",
"RRM-NEIGHBOR-REP-REQUEST-FAILED" ], timeout=10)