]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: wpa_supplicant SET lci error cases
authorJouni Malinen <j@w1.fi>
Sun, 8 Jan 2017 12:51:09 +0000 (14:51 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 8 Jan 2017 12:51:09 +0000 (14:51 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_ctrl.py

index e35b95820525873f08dd0c14438d14e08da3dd7e..d8070a0f957ae5b7f91236959b23d3f8bbfa2453 100644 (file)
@@ -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")