From fb8d53e0bb1277d701d8cdfac5c4dc58e16f2fd3 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 6 Apr 2014 13:40:40 +0300 Subject: [PATCH] tests: WPS parameter update using SET Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 553a707ff..193b9815c 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -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) -- 2.47.2