Browse Source

qcacld-3.0: Properly set WLAN_IPA_MAX_STA_COUNT

Set WLAN_IPA_MAX_STA_COUNT to WLAN_MAX_CLIENTS_ALLOWED
if WLAN_MAX_CLIENTS_ALLOWED is defined.

Change-Id: Ic7b3706897cec8ee149bab12cd91c94ae04f75ef
CRs-Fixed: 2658585
Jia Ding 5 years ago
parent
commit
51a9fa1c4a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      components/ipa/core/inc/wlan_ipa_priv.h

+ 4 - 0
components/ipa/core/inc/wlan_ipa_priv.h

@@ -56,7 +56,11 @@
 #define WLAN_IPA_CLIENT_MAX_IFACE           3
 #define WLAN_IPA_MAX_SYSBAM_PIPE            4
 #define WLAN_IPA_MAX_SESSION                5
+#ifdef WLAN_MAX_CLIENTS_ALLOWED
+#define WLAN_IPA_MAX_STA_COUNT              WLAN_MAX_CLIENTS_ALLOWED
+#else
 #define WLAN_IPA_MAX_STA_COUNT              41
+#endif
 
 #define WLAN_IPA_RX_PIPE                    WLAN_IPA_MAX_IFACE
 #define WLAN_IPA_ENABLE_MASK                BIT(0)