tests: WNM-Sleep Mode Request bounds checking for empty contents

The wnm_sleep_mode_proto test case was already covering number of
invalid WNM-Sleep Mode Request frame cases, but it was missing the
shortest possible case with a missing Dialog Token field. Add that as a
regression test case for bounds checking in
ieee802_11_rx_wnmsleep_req().

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2018-10-29 21:10:27 +02:00 committed by Jouni Malinen
parent e34cd9f06e
commit 0c1e29fd30

View file

@ -452,7 +452,8 @@ def test_wnm_sleep_mode_proto(dev, apdev):
hdr = "d0003a01" + bssid.replace(':', '') + addr.replace(':', '') + bssid.replace(':', '') + "1000"
hapd.set("ext_mgmt_frame_handling", "1")
tests = [ "0a1001",
tests = [ "0a10",
"0a1001",
"0a10015d00",
"0a10015d01",
"0a10015d0400000000",