]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WNM keep-alive
authorJouni Malinen <j@w1.fi>
Sat, 12 Apr 2014 15:53:35 +0000 (18:53 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 13 Apr 2014 07:26:53 +0000 (10:26 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wnm.py

index 22c128e0a22e220160945e1f3c505898f1645f9c..14867f7838ad1f1af28be0befa2905e11bbe0575 100644 (file)
@@ -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)