]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WPS parameter update using SET
authorJouni Malinen <j@w1.fi>
Sun, 6 Apr 2014 10:40:40 +0000 (13:40 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 6 Apr 2014 10:40:40 +0000 (13:40 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_ctrl.py

index 553a707ffdb93dff1230e006de0b2754470be41a..193b9815c756e9b318fcfff40b02d0a41b5d01e4 100644 (file)
@@ -360,3 +360,13 @@ def test_wpas_ctrl_mib(dev):
         raise Exception("Missing MIB entry")
     if mib["dot11RSNAOptionImplemented"] != "TRUE":
         raise Exception("Unexpected dot11RSNAOptionImplemented value")
+
+def test_wpas_ctrl_set_wps_params(dev):
+    """wpa_supplicant ctrl_iface SET config_methods"""
+    ts = [ "config_methods label virtual_display virtual_push_button keypad",
+           "device_type 1-0050F204-1",
+           "os_version 01020300",
+           "uuid 12345678-9abc-def0-1234-56789abcdef0" ]
+    for t in ts:
+        if "OK" not in dev[2].request("SET " + t):
+            raise Exception("SET failed for: " + t)