From 3e735adf0b8461fc3d3bd044e2684bbfad2439f9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 6 Mar 2021 11:38:18 +0200 Subject: [PATCH] tests: WNM time advertisement and interface restart Signed-off-by: Jouni Malinen --- tests/hwsim/test_wnm.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 9b4875bdb..10b07559b 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -1942,3 +1942,10 @@ def test_wnm_bss_transition_mgmt_disabled(dev, apdev): raise Exception("Unexpected BSS Transition Management Response") finally: dev[0].set("disable_btm", "0") + +def test_wnm_time_adv_restart(dev, apdev): + """WNM time advertisement and interface restart""" + hapd = start_wnm_ap(apdev[0], time_adv=True) + hapd.disable() + hapd.enable() + dev[0].connect("test-wnm", key_mgmt="NONE", scan_freq="2412")