From 986ed3a9ca4a7970e6f910a34f2f0df50972bbc0 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 22 Nov 2014 21:49:45 +0200 Subject: [PATCH] tests: NEIGHBOR_REP_REQUEST failure cases Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index a8ea1ad8d..cd8e2981d 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -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")