]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: NEIGHBOR_REP_REQUEST failure cases
authorJouni Malinen <j@w1.fi>
Sat, 22 Nov 2014 19:49:45 +0000 (21:49 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 22 Nov 2014 19:49:45 +0000 (21:49 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_ctrl.py

index a8ea1ad8dafadaf4c10f3cd1cf56a917eed7c45e..cd8e2981dc2568e65d92f0f770e7a0431cf0b8d2 100644 (file)
@@ -1040,3 +1040,13 @@ def test_wpas_ctrl_ipaddr(dev, apdev):
     finally:
         subprocess.call(['ip', 'addr', 'del', '10.174.65.207/32', 'dev',
                          dev[0].ifname])
+
+def test_wpas_ctrl_neighbor_rep_req(dev, apdev):
+    """wpa_supplicant ctrl_iface NEIGHBOR_REP_REQUEST"""
+    params = { "ssid": "test" }
+    hostapd.add_ap(apdev[0]['ifname'], params)
+    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"):
+        raise Exception("Request succeeded unexpectedly")