From 07407c0a43b48539c18c38079287573bb25983f5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 6 Apr 2014 16:00:25 +0300 Subject: [PATCH] tests: SET uapsd Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index e4403cc26..57a7146b2 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -469,3 +469,18 @@ def test_wpas_ctrl_blob(dev): raise Exception("Unexpected SET failure") if "OK" not in dev[0].request("SET blob foo 0011"): raise Exception("Unexpected SET failure") + +def test_wpas_ctrl_set_uapsd(dev): + """wpa_supplicant ctrl_iface SET uapsd""" + if "FAIL" not in dev[0].request("SET uapsd foo"): + raise Exception("Unexpected SET success") + if "FAIL" not in dev[0].request("SET uapsd 0,0,0"): + raise Exception("Unexpected SET success") + if "FAIL" not in dev[0].request("SET uapsd 0,0"): + raise Exception("Unexpected SET success") + if "FAIL" not in dev[0].request("SET uapsd 0"): + raise Exception("Unexpected SET success") + if "OK" not in dev[0].request("SET uapsd 0,0,0,0;0"): + raise Exception("Unexpected SET failure") + if "OK" not in dev[0].request("SET uapsd disable"): + raise Exception("Unexpected SET failure")