From 7d2cd2673eb94e99bd4326e7c9e2df825602b8ab Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Tue, 19 Sep 2023 10:42:16 +0800 Subject: [PATCH] qcacld-3.0: Set max number of disabled link to WLAN_UMAC_MLO_MAX_VDEVS In the transition of set active and inactive link command, the max number of disabled vdev number may be 2. To avoid the overflow the pm_disabled_ml_links array, set array size to WLAN_UMAC_MLO_MAX_VDEVS. Change-Id: I71dd7c752062f4a2de67a89a5d655a2c2e6c9e9b CRs-Fixed: 3618190 --- .../policy_mgr/inc/wlan_policy_mgr_public_struct.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_public_struct.h b/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_public_struct.h index 140894dcc7..59e693b997 100644 --- a/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_public_struct.h +++ b/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_public_struct.h @@ -65,8 +65,8 @@ #endif #ifdef WLAN_FEATURE_11BE_MLO -/* Max MLO VDEVS - 1 as all vdevs cannot be disabled */ -#define MAX_NUMBER_OF_DISABLE_LINK WLAN_UMAC_MLO_MAX_VDEVS - 1 +/* Max MLO VDEVS for disabled link table */ +#define MAX_NUMBER_OF_DISABLE_LINK WLAN_UMAC_MLO_MAX_VDEVS #endif /* BIT 0 for low latency and BIT 1 for HIGH TPUT */