diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index ff454f2ce..6c3d9833e 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -293,3 +293,55 @@ def test_wnm_bss_tm_req(dev, apdev): 0, 81, 1, 7) hapd.mgmt_tx(req) resp = rx_bss_tm_resp(hapd, expect_dialog=6, expect_status=1) + + # Preferred Candidate List with a truncated subelement + req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'], + req_mode=0x01, dialog_token=7) + req['payload'] += struct.pack("