aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-06-19 20:47:01 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-19 20:48:07 (GMT)
commit51435515fbe59d4042943c33426a8aa19264195f (patch)
tree03206c4f25503e6c200bd14383a62e5a987d4b7f
parent2833743d4c747a8ccfb7d5ec4f28360ffff57b61 (diff)
downloadhostap-51435515fbe59d4042943c33426a8aa19264195f.zip
hostap-51435515fbe59d4042943c33426a8aa19264195f.tar.gz
hostap-51435515fbe59d4042943c33426a8aa19264195f.tar.bz2
tests: mesh_scan_oom to support partial BSS result reporting
The next commit modifies the BSS command behavior to report partial results for a BSS, so mesh_scan_oom needs to allow a BSS entry to be returned as long as it does not include the mesh information. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_wpas_mesh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py
index a5f540a..b599e90 100644
--- a/tests/hwsim/test_wpas_mesh.py
+++ b/tests/hwsim/test_wpas_mesh.py
@@ -1291,7 +1291,7 @@ def test_mesh_scan_oom(dev):
for i in range(1, 3):
with alloc_fail(dev[1], i, "mesh_attr_text"):
bss = dev[1].get_bss(bssid)
- if bss is not None:
+ if bss and "mesh_id" in bss:
raise Exception("Unexpected BSS result during OOM")
def test_mesh_drv_fail(dev, apdev):