qcacmn: Don't send MLO params in vdev restart request

Current FW implementation is not expecting MLO and partner link params
in vdev restart request. But host is sending these params as part of
vdev restart request. This is resulting in TLV count mismatch for vdev
restart request.

To resolve this, Don't send MLO and partner link params in vdev
restart request command.

Change-Id: Ied4572722c701ad7f53ac12727228a383e570433
CRs-Fixed: 2973256
This commit is contained in:
Abhishek Singh
2021-06-21 10:24:44 +05:30
committed by Madan Koyyalamudi
parent 0e0155eb0d
commit f162bb1a8a

View File

@@ -1075,6 +1075,7 @@ static QDF_STATUS send_vdev_start_cmd_tlv(wmi_unified_t wmi_handle,
uint8_t *buf_ptr;
len = sizeof(*cmd) + sizeof(wmi_channel) + WMI_TLV_HDR_SIZE;
if (!req->is_restart)
len += vdev_start_mlo_params_size(req);
buf = wmi_buf_alloc(wmi_handle, len);
if (!buf)
@@ -1134,11 +1135,13 @@ static QDF_STATUS send_vdev_start_cmd_tlv(wmi_unified_t wmi_handle,
WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_ARRAY_STRUC,
cmd->num_noa_descriptors *
sizeof(wmi_p2p_noa_descriptor));
if (!req->is_restart) {
buf_ptr += WMI_TLV_HDR_SIZE +
(cmd->num_noa_descriptors * sizeof(wmi_p2p_noa_descriptor));
buf_ptr = vdev_start_add_mlo_params(buf_ptr, req);
buf_ptr = vdev_start_add_ml_partner_links(buf_ptr, req);
}
wmi_info("vdev_id %d freq %d chanmode %d ch_info: 0x%x is_dfs %d "
"beacon interval %d dtim %d center_chan %d center_freq2 %d "
"reg_info_1: 0x%x reg_info_2: 0x%x, req->max_txpow: 0x%x "