mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: BTM Request Preferred Candidate List followed by vendor element
This goes through parsing code for a case that was interpreted incorrectly in the past. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
f420577f3c
commit
f1e26f8965
@ -419,6 +419,17 @@ def test_wnm_bss_tm_req(dev, apdev):
|
||||
hapd.mgmt_tx(req)
|
||||
resp = rx_bss_tm_resp(hapd, expect_dialog=8, expect_status=7)
|
||||
|
||||
# Preferred Candidate List followed by vendor element
|
||||
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
||||
req_mode=0x01, dialog_token=8)
|
||||
subelems = ""
|
||||
req['payload'] += struct.pack("<BB6BLBBB", 52, 13 + len(subelems),
|
||||
1, 2, 3, 4, 5, 6,
|
||||
0, 81, 1, 7) + subelems
|
||||
req['payload'] += binascii.unhexlify("DD0411223344")
|
||||
hapd.mgmt_tx(req)
|
||||
resp = rx_bss_tm_resp(hapd, expect_dialog=8, expect_status=7)
|
||||
|
||||
def test_wnm_bss_keep_alive(dev, apdev):
|
||||
"""WNM keep-alive"""
|
||||
params = { "ssid": "test-wnm",
|
||||
|
Loading…
Reference in New Issue
Block a user