tests: SET uapsd

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-04-06 16:00:25 +03:00
parent fa9e07ec6a
commit 07407c0a43

View file

@ -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")