qcacmn: Use WLAN_MAX_ML_BSS_LINKS to check max number of links

Currently, We are using WLAN_MLO_MAX_VDEVS to check
max number of links, However with n link mlo we need
WLAN_MAX_ML_BSS_LINKS to check max number link.

Change-Id: Idd8a96ae80030c813bbdcebcdc4c76d2f93bea5d
CRs-Fixed: 3567342
Esse commit está contido em:
Aasir Rasheed
2023-07-21 14:26:35 +05:30
commit de Rahul Choudhary
commit 8f15871d98
3 arquivos alterados com 6 adições e 2 exclusões

Ver arquivo

@@ -2109,6 +2109,10 @@ struct wlan_ie_bw_ind {
#ifdef WLAN_FEATURE_11BE_MLO
#define WLAN_MLO_MAX_VDEVS 2
#ifndef WLAN_MAX_ML_BSS_LINKS
#define WLAN_MAX_ML_BSS_LINKS 3
#endif
/* Size in octets of the BSS Parameters Change Count (sub)field */
#define WLAN_ML_BSSPARAMCHNGCNT_SIZE 1

Ver arquivo

@@ -322,7 +322,7 @@ struct ml_link_info {
struct ml_link_state_info_event {
uint32_t status;
uint32_t hw_mode_index;
struct ml_link_info link_info[WLAN_MLO_MAX_VDEVS];
struct ml_link_info link_info[WLAN_MAX_ML_BSS_LINKS];
uint16_t num_mlo_vdev_link_info;
uint8_t vdev_id;
struct qdf_mac_addr mldaddr;

Ver arquivo

@@ -1486,7 +1486,7 @@ extract_mlo_link_state_event_tlv(struct wmi_unified *wmi_handle,
mld_addr = params->mldaddr.bytes;
WMI_MAC_ADDR_TO_CHAR_ARRAY(&ev->mld_macaddr, mld_addr);
if (params->num_mlo_vdev_link_info > WLAN_MLO_MAX_VDEVS) {
if (params->num_mlo_vdev_link_info > WLAN_MAX_ML_BSS_LINKS) {
wmi_err_rl("Invalid number of vdev link info");
return QDF_STATUS_E_FAILURE;
}