From 67966089a63d3249e1720a5abc94f37c85110d79 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 7 Dec 2014 18:10:20 +0200 Subject: [PATCH] tests: wpa_supplicant ctrl_iface CTRL-RSP- Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index b77c4575f..54f45e1bf 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -1080,3 +1080,23 @@ def test_wpas_ctrl_neighbor_rep_req(dev, apdev): raise Exception("Request succeeded unexpectedly") if "FAIL" not in dev[0].request("NEIGHBOR_REP_REQUEST ssid=abcdef"): raise Exception("Request succeeded unexpectedly") + +def test_wpas_ctrl_rsp(dev, apdev): + """wpa_supplicant ctrl_iface CTRL-RSP-""" + if "FAIL" not in dev[0].request("CTRL-RSP-"): + raise Exception("Request succeeded unexpectedly") + if "FAIL" not in dev[0].request("CTRL-RSP-foo-"): + raise Exception("Request succeeded unexpectedly") + if "FAIL" not in dev[0].request("CTRL-RSP-foo-1234567"): + raise Exception("Request succeeded unexpectedly") + if "FAIL" not in dev[0].request("CTRL-RSP-foo-1234567:"): + raise Exception("Request succeeded unexpectedly") + id = dev[0].add_network() + if "FAIL" not in dev[0].request("CTRL-RSP-foo-%d:" % id): + raise Exception("Request succeeded unexpectedly") + for req in [ "IDENTITY", "PASSWORD", "NEW_PASSWORD", "PIN", "OTP", + "PASSPHRASE", "SIM" ]: + if "OK" not in dev[0].request("CTRL-RSP-%s-%d:" % (req, id)): + raise Exception("Request failed unexpectedly") + if "OK" not in dev[0].request("CTRL-RSP-%s-%d:" % (req, id)): + raise Exception("Request failed unexpectedly")