]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WNM Time Advertisement without time zone configuration
authorJouni Malinen <j@w1.fi>
Thu, 31 May 2018 09:55:49 +0000 (12:55 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 31 May 2018 09:55:49 +0000 (12:55 +0300)
This is a regression test for a segfault in hostapd.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wnm.py

index 31f5c59de368ce37626b5df1f59961919efa9054..3f9a4460fb46c8a52c6826ff4a7cc97da36dedaa 100644 (file)
@@ -1802,3 +1802,11 @@ def test_wnm_bss_transition_mgmt_query_with_unknown_candidates(dev, apdev):
     ev = hapd.wait_event(["BSS-TM-RESP"], timeout=5)
     if ev is None:
         raise Exception("No BSS Transition Management Response frame seen")
+
+def test_wnm_time_adv_without_time_zone(dev, apdev):
+    """WNM Time Advertisement without time zone configuration"""
+    params = { "ssid": "test-wnm",
+               "time_advertisement": "2" }
+    hostapd.add_ap(apdev[0], params)
+
+    dev[0].connect("test-wnm", key_mgmt="NONE", scan_freq="2412")