qcacmn: Correct the peer assoc command TLV length
PEER assoc command failed in the tlv validation check. Tlv length sent in the TLV header is different from the length used to fill the tlv buffer which caused failure at tlv validation. Modified code to use the aligned length while filling the tlv buffer. Change-Id: I9ad2009315dd3cf37308ef44360d566035344950 CRs-Fixed: 1069008
This commit is contained in:

committed by
qcabuildsw

parent
3a5eedb68c
commit
f358b1a822
@@ -1638,7 +1638,7 @@ QDF_STATUS send_peer_assoc_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
param->peer_legacy_rates.num_rates);
|
||||
|
||||
/* Update peer HT rate information */
|
||||
buf_ptr += param->peer_legacy_rates.num_rates;
|
||||
buf_ptr += peer_legacy_rates_align;
|
||||
WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_ARRAY_BYTE,
|
||||
peer_ht_rates_align);
|
||||
buf_ptr += WMI_TLV_HDR_SIZE;
|
||||
@@ -1647,7 +1647,7 @@ QDF_STATUS send_peer_assoc_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
param->peer_ht_rates.num_rates);
|
||||
|
||||
/* VHT Rates */
|
||||
buf_ptr += param->peer_ht_rates.num_rates;
|
||||
buf_ptr += peer_ht_rates_align;
|
||||
WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_STRUC_wmi_vht_rate_set,
|
||||
WMITLV_GET_STRUCT_TLVLEN(wmi_vht_rate_set));
|
||||
|
||||
|
Reference in New Issue
Block a user