resp = rx_bss_tm_resp(hapd, expect_dialog=8, expect_status=7)
dev[0].dump_monitor()
+ # Preferred Candidate List with truncated BSS Termination Duration
+ # WNM: Too short BSS termination duration
+ req = bss_tm_req(addr, apdev[0]['bssid'],
+ req_mode=0x01, dialog_token=8)
+ # BSS Termination Duration (truncated)
+ subelems = struct.pack("<BBQB", 4, 9, 0, 10)
+ req['payload'] += struct.pack("<BB6BLBBB", 52, 13 + len(subelems),
+ 1, 2, 3, 4, 5, 6,
+ 0, 81, 1, 7) + subelems
+ hapd.mgmt_tx(req)
+ resp = rx_bss_tm_resp(hapd, expect_dialog=8, expect_status=7)
+ dev[0].dump_monitor()
+
# Preferred Candidate List followed by vendor element
req = bss_tm_req(addr, apdev[0]['bssid'],
req_mode=0x01, dialog_token=8)