Browse Source

qcacmn: Initialize RX refill buffer pool size for SOFTUMAC arch

In the current code, RX refill buffer pool size is not initialized for
SOFTUMAC architectures, this was leading to a kernel BRK panic.

Initialize RX refill buffer pool size for SOFTUMAC architectures to fix
this.

Change-Id: I0424ba69b0d5f33386e931d4e6723fc8265e216c
CRs-Fixed: 3621417
Manikanta Pubbisetty 1 year ago
parent
commit
d5578559ec
1 changed files with 3 additions and 0 deletions
  1. 3 0
      wlan_cfg/wlan_cfg.c

+ 3 - 0
wlan_cfg/wlan_cfg.c

@@ -4171,6 +4171,9 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc)
 #ifdef WLAN_FEATURE_PKT_CAPTURE_V2
 #ifdef WLAN_FEATURE_PKT_CAPTURE_V2
 	wlan_cfg_ctx->pkt_capture_mode = cfg_get(psoc, CFG_PKT_CAPTURE_MODE) &
 	wlan_cfg_ctx->pkt_capture_mode = cfg_get(psoc, CFG_PKT_CAPTURE_MODE) &
 						 PKT_CAPTURE_MODE_DATA_ONLY;
 						 PKT_CAPTURE_MODE_DATA_ONLY;
+#endif
+#ifdef WLAN_FEATURE_RX_PREALLOC_BUFFER_POOL
+	wlan_cfg_ctx->rx_refill_buff_pool_size = DP_RX_REFILL_BUFF_POOL_SIZE;
 #endif
 #endif
 	wlan_cfg_ctx->num_rxdma_dst_rings_per_pdev = NUM_RXDMA_RINGS_PER_PDEV;
 	wlan_cfg_ctx->num_rxdma_dst_rings_per_pdev = NUM_RXDMA_RINGS_PER_PDEV;
 	wlan_cfg_ctx->num_rxdma_status_rings_per_pdev =
 	wlan_cfg_ctx->num_rxdma_status_rings_per_pdev =