aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-06-04 21:03:38 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-04 21:13:40 (GMT)
commite8739be8424a1cce73ec30325513bf8d37e2e3e9 (patch)
tree7962f98d5bbb75b78054733fd8c2d55ae4ba9a31 /tests
parent699074d30c13c6c0da880cb736c587f11f61a3f9 (diff)
downloadhostap-e8739be8424a1cce73ec30325513bf8d37e2e3e9.zip
hostap-e8739be8424a1cce73ec30325513bf8d37e2e3e9.tar.gz
hostap-e8739be8424a1cce73ec30325513bf8d37e2e3e9.tar.bz2
tests: Mesh scan element parse error
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wpas_mesh.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py
index 92650f3..9bafd5d 100644
--- a/tests/hwsim/test_wpas_mesh.py
+++ b/tests/hwsim/test_wpas_mesh.py
@@ -11,6 +11,7 @@ import subprocess
import time
import hwsim_utils
+import hostapd
from wpasupplicant import WpaSupplicant
from utils import HwsimSkip, alloc_fail, fail_test, wait_fail_trigger
from tshark import run_tshark
@@ -1275,3 +1276,19 @@ def test_mesh_default_beacon_int(dev, apdev):
check_mesh_group_added(dev[0])
finally:
dev[0].request("SET beacon_int 0")
+
+def test_mesh_scan_parse_error(dev, apdev):
+ """Mesh scan element parse error"""
+ check_mesh_support(dev[0])
+ params = { "ssid": "open",
+ "beacon_int": "2000" }
+ hapd = hostapd.add_ap(apdev[0], params)
+ bssid = apdev[0]['bssid']
+ hapd.set('vendor_elements', 'dd0201')
+ for i in range(10):
+ dev[0].scan(freq=2412)
+ if bssid in dev[0].request("SCAN_RESULTS"):
+ break
+ # This will fail in IE parsing due to the truncated IE in the Probe
+ # Response frame.
+ bss = dev[0].request("BSS " + bssid)