aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-08 12:51:09 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-08 12:51:09 (GMT)
commit22e0dade9a90e794e3eef0117b0e2b4fb9ac6e36 (patch)
tree42506431b09a7622112b48c298be03a34407f536 /tests
parent479c05b0675384b66dd8ce8f983276cbed44225b (diff)
downloadhostap-22e0dade9a90e794e3eef0117b0e2b4fb9ac6e36.zip
hostap-22e0dade9a90e794e3eef0117b0e2b4fb9ac6e36.tar.gz
hostap-22e0dade9a90e794e3eef0117b0e2b4fb9ac6e36.tar.bz2
tests: wpa_supplicant SET lci error cases
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wpas_ctrl.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py
index e35b958..d8070a0 100644
--- a/tests/hwsim/test_wpas_ctrl.py
+++ b/tests/hwsim/test_wpas_ctrl.py
@@ -1987,3 +1987,12 @@ def test_wpas_ctrl_bss_current(dev, apdev):
res = dev[0].request("BSS CURRENT")
if bssid not in res:
raise Exception("Unexpected BSS CURRENT response in connected state")
+
+def test_wpas_ctrl_set_lci_errors(dev):
+ """wpa_supplicant SET lci error cases"""
+ if "FAIL" not in dev[0].request("SET lci q"):
+ raise Exception("Invalid LCI value accepted")
+
+ with fail_test(dev[0], 1, "os_get_reltime;wpas_ctrl_iface_set_lci"):
+ if "FAIL" not in dev[0].request("SET lci 00"):
+ raise Exception("SET lci accepted with failing os_get_reltime")