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
1 changed files with 11 additions and 0 deletions
|
@ -419,6 +419,17 @@ def test_wnm_bss_tm_req(dev, apdev):
|
||||||
hapd.mgmt_tx(req)
|
hapd.mgmt_tx(req)
|
||||||
resp = rx_bss_tm_resp(hapd, expect_dialog=8, expect_status=7)
|
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):
|
def test_wnm_bss_keep_alive(dev, apdev):
|
||||||
"""WNM keep-alive"""
|
"""WNM keep-alive"""
|
||||||
params = { "ssid": "test-wnm",
|
params = { "ssid": "test-wnm",
|
||||||
|
|
Loading…
Reference in a new issue