From: Jouni Malinen Date: Sat, 12 Apr 2014 15:53:35 +0000 (+0300) Subject: tests: WNM keep-alive X-Git-Tag: hostap_2_2~299 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=519c3f70443a1f93d3bbbba7a23ebae01653cfc9;p=thirdparty%2Fhostap.git tests: WNM keep-alive Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 22c128e0a..14867f783 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -353,3 +353,12 @@ def test_wnm_bss_tm_req(dev, apdev): 0, 81, 1, 7) + subelems + subelems hapd.mgmt_tx(req) resp = rx_bss_tm_resp(hapd, expect_dialog=8, expect_status=1) + +def test_wnm_bss_keep_alive(dev, apdev): + """WNM keep-alive""" + params = { "ssid": "test-wnm", + "ap_max_inactivity": "1" } + hostapd.add_ap(apdev[0]['ifname'], params) + + dev[0].connect("test-wnm", key_mgmt="NONE", scan_freq="2412") + time.sleep(2)