]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: VENDOR_ELEM 14 to add an IE into Probe Request frame
authorJouni Malinen <j@w1.fi>
Fri, 8 Apr 2016 14:28:24 +0000 (17:28 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 8 Apr 2016 21:30:49 +0000 (00:30 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_scan.py

index 8121ed40e810b8ba165457e257173e69a6bc374d..8a7a89d5b22144813e3d539f64cdc33ecddf4061 100644 (file)
@@ -990,3 +990,15 @@ def test_scan_abort_on_connect(dev, apdev):
     if ev is None:
         raise Exception("Scan did not start")
     dev[0].connect("test-scan", key_mgmt="NONE")
+
+def test_scan_ext(dev, apdev):
+    """Custom IE in Probe Request frame"""
+    hostapd.add_ap(apdev[0], { "ssid": "test-scan" })
+    bssid = apdev[0]['bssid']
+
+    try:
+        if "OK" not in dev[0].request("VENDOR_ELEM_ADD 14 dd050011223300"):
+            raise Exception("VENDOR_ELEM_ADD failed")
+        check_scan(dev[0], "freq=2412 use_id=1")
+    finally:
+        dev[0].request("VENDOR_ELEM_REMOVE 14 *")