Browse Source

qcacmn: update WLAN_CFG_RX_BUFFER_SIZE and WLAN_CFG_RX_BUFFER_SIZE_MIN

updated WLAN_CFG_RX_BUFFER_SIZE and WLAN_CFG_RX_BUFFER_SIZE_MIN to address
Low Memory platform issue caused by customizable rx_buffer_size feature

Change-Id: Ice4b42a0e9ab3328fb4c84b4c002c892eb8ed5c9
CRs-Fixed: 3638006
Abhishek Suryawanshi 1 year ago
parent
commit
ecf3b36a28
1 changed files with 6 additions and 2 deletions
  1. 6 2
      wlan_cfg/cfg_dp.h

+ 6 - 2
wlan_cfg/cfg_dp.h

@@ -100,7 +100,11 @@
 
 #define WLAN_CFG_TIME_CONTROL_BP 3000
 
+#if defined(RX_DATA_BUFFER_SIZE)
+#define WLAN_CFG_RX_BUFFER_SIZE RX_DATA_BUFFER_SIZE
+#else
 #define WLAN_CFG_RX_BUFFER_SIZE 2048
+#endif
 
 #define WLAN_CFG_QREF_CONTROL_SIZE 0
 
@@ -184,8 +188,8 @@
 
 #define WLAN_CFG_TIME_CONTROL_BP_MIN 3000
 #define WLAN_CFG_TIME_CONTROL_BP_MAX 1800000
-
-#define WLAN_CFG_RX_BUFFER_SIZE_MIN 2048
+/*MTU size of ethernet is 1500*/
+#define WLAN_CFG_RX_BUFFER_SIZE_MIN 1536
 #define WLAN_CFG_RX_BUFFER_SIZE_MAX 4096
 
 #define WLAN_CFG_QREF_CONTROL_SIZE_MIN 0