tests: NEIGHBOR_REP_REQUEST failure cases

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-11-22 21:49:45 +02:00
parent 70d1e72849
commit 986ed3a9ca

View 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")