From: Jouni Malinen Date: Thu, 11 Dec 2014 21:03:10 +0000 (+0200) Subject: tests: WNM_SLEEP error cases X-Git-Tag: hostap_2_4~823 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f8423317b3ea80561a756059a2b2796e19e77235;p=thirdparty%2Fhostap.git tests: WNM_SLEEP error cases Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 0f2503d64..d18e1ac30 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -131,6 +131,13 @@ def test_wnm_sleep_mode_open(dev, apdev): check_wnm_sleep_mode_enter_exit(hapd, dev[0], interval=100) check_wnm_sleep_mode_enter_exit(hapd, dev[0], tfs_req="5b17010001130e110000071122334455661122334455661234") + cmds = [ "foo", + "exit tfs_req=123 interval=10", + "enter tfs_req=qq interval=10" ] + for cmd in cmds: + if "FAIL" not in dev[0].request("WNM_SLEEP " + cmd): + raise Exception("Invalid WNM_SLEEP accepted") + def test_wnm_sleep_mode_rsn(dev, apdev): """WNM Sleep Mode - RSN""" params = hostapd.wpa2_params("test-wnm-rsn", "12345678")