tests: Preferred Candidate List with truncated BSS Termination Duration
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
e8ebef87cb
commit
d27f1acbfa
1 changed files with 13 additions and 0 deletions
|
@ -691,6 +691,19 @@ def test_wnm_bss_tm_req(dev, apdev):
|
||||||
resp = rx_bss_tm_resp(hapd, expect_dialog=8, expect_status=7)
|
resp = rx_bss_tm_resp(hapd, expect_dialog=8, expect_status=7)
|
||||||
dev[0].dump_monitor()
|
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
|
# Preferred Candidate List followed by vendor element
|
||||||
req = bss_tm_req(addr, apdev[0]['bssid'],
|
req = bss_tm_req(addr, apdev[0]['bssid'],
|
||||||
req_mode=0x01, dialog_token=8)
|
req_mode=0x01, dialog_token=8)
|
||||||
|
|
Loading…
Reference in a new issue