From: Jouni Malinen Date: Thu, 31 May 2018 09:55:49 +0000 (+0300) Subject: tests: WNM Time Advertisement without time zone configuration X-Git-Tag: hostap_2_7~303 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5fb016a2191d5059b699b3528143f15e49582727;p=thirdparty%2Fhostap.git tests: WNM Time Advertisement without time zone configuration This is a regression test for a segfault in hostapd. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 31f5c59de..3f9a4460f 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -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")