Kaynağa Gözat

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
Liangwei Dong 1 yıl önce
ebeveyn
işleme
7d2cd2673e

+ 2 - 2
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 */