From: Jouni Malinen Date: Sun, 6 Apr 2014 13:00:25 +0000 (+0300) Subject: tests: SET uapsd X-Git-Tag: hostap_2_2~359 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07407c0a43b48539c18c38079287573bb25983f5;p=thirdparty%2Fhostap.git tests: SET uapsd Signed-off-by: Jouni Malinen --- 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")