qcacmn: Fix incorrect buffer for channel info in multiple vdev restart cmd
Channel information TLV pointer is not updated to the data offset once TLV header is set. Fix by moving the pointer ahead by TLV header size. Change-Id: I3c8ad7b690153745d92d51e4d9d1e377b149e1d2 CRs-Fixed: 2000449
This commit is contained in:

committed by
qcabuildsw

parent
f6e3e636a6
commit
3e28e00dce
@@ -13519,7 +13519,7 @@ static QDF_STATUS send_multiple_vdev_restart_req_cmd_tlv(
|
|||||||
WMITLV_SET_HDR(buf_ptr,
|
WMITLV_SET_HDR(buf_ptr,
|
||||||
WMITLV_TAG_STRUC_wmi_channel,
|
WMITLV_TAG_STRUC_wmi_channel,
|
||||||
WMITLV_GET_STRUCT_TLVLEN(wmi_channel));
|
WMITLV_GET_STRUCT_TLVLEN(wmi_channel));
|
||||||
chan_info = (wmi_channel *)(buf_ptr + WMI_TLV_HDR_SIZE);
|
chan_info = (wmi_channel *)buf_ptr;
|
||||||
tchan_info = &(param->ch_param);
|
tchan_info = &(param->ch_param);
|
||||||
chan_info->mhz = tchan_info->mhz;
|
chan_info->mhz = tchan_info->mhz;
|
||||||
chan_info->band_center_freq1 = tchan_info->cfreq1;
|
chan_info->band_center_freq1 = tchan_info->cfreq1;
|
||||||
|
Reference in New Issue
Block a user