qcacmn: Add WMI MLO params for vdev start

New TLVs for MLO flags and partner link info are introduced in vdev
start WMI command. Add WMI changes to add these TLV in the vdev start
command.

Change-Id: Ic7d54c406f69346a6eedb43b1ebcf7266c448bd8
CRs-Fixed: 2958843
This commit is contained in:
Kiran Venkatappa
2021-04-23 01:12:50 +05:30
committed by Madan Koyyalamudi
parent 923cd4dea9
commit 18a1a3d4a5
4 changed files with 156 additions and 0 deletions

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;
len += vdev_start_mlo_params_size(req);
buf = wmi_buf_alloc(wmi_handle, len);
if (!buf)
return QDF_STATUS_E_NOMEM;
@@ -1133,6 +1134,11 @@ 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));
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 "