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
This commit is contained in:

committed by
Rahul Choudhary

parent
a815fe5825
commit
8f15871d98
@@ -2109,6 +2109,10 @@ struct wlan_ie_bw_ind {
|
|||||||
#ifdef WLAN_FEATURE_11BE_MLO
|
#ifdef WLAN_FEATURE_11BE_MLO
|
||||||
#define WLAN_MLO_MAX_VDEVS 2
|
#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 */
|
/* Size in octets of the BSS Parameters Change Count (sub)field */
|
||||||
#define WLAN_ML_BSSPARAMCHNGCNT_SIZE 1
|
#define WLAN_ML_BSSPARAMCHNGCNT_SIZE 1
|
||||||
|
|
||||||
|
@@ -322,7 +322,7 @@ struct ml_link_info {
|
|||||||
struct ml_link_state_info_event {
|
struct ml_link_state_info_event {
|
||||||
uint32_t status;
|
uint32_t status;
|
||||||
uint32_t hw_mode_index;
|
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;
|
uint16_t num_mlo_vdev_link_info;
|
||||||
uint8_t vdev_id;
|
uint8_t vdev_id;
|
||||||
struct qdf_mac_addr mldaddr;
|
struct qdf_mac_addr mldaddr;
|
||||||
|
@@ -1486,7 +1486,7 @@ extract_mlo_link_state_event_tlv(struct wmi_unified *wmi_handle,
|
|||||||
mld_addr = params->mldaddr.bytes;
|
mld_addr = params->mldaddr.bytes;
|
||||||
WMI_MAC_ADDR_TO_CHAR_ARRAY(&ev->mld_macaddr, mld_addr);
|
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");
|
wmi_err_rl("Invalid number of vdev link info");
|
||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user