From 989bc220062ea100ae4999638f8545fd43946118 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 14 Apr 2019 16:56:00 +0300 Subject: [PATCH] tests: WNM Sleep Mode disabled on AP Signed-off-by: Jouni Malinen --- tests/hwsim/test_wnm.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 4caf29010..94aaadf73 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -251,6 +251,14 @@ def test_wnm_sleep_mode_open_fail(dev, apdev): dev[0].request("WNM_SLEEP enter") wait_fail_trigger(hapd, "GET_FAIL") +def test_wnm_sleep_mode_disabled_on_ap(dev, apdev): + """WNM Sleep Mode disabled on AP""" + hapd = start_wnm_ap(apdev[0], wnm_sleep_mode=False) + dev[0].connect("test-wnm", key_mgmt="NONE", scan_freq="2412") + # Ignore WNM-Sleep Mode Request from 02:00:00:00:00:00 since WNM-Sleep Mode is disabled + dev[0].request("WNM_SLEEP enter") + time.sleep(0.1) + @remote_compatible def test_wnm_sleep_mode_rsn(dev, apdev): """WNM Sleep Mode - RSN"""