qcacmn: set customizable rx_buffer_size

introduce custom rx_buffer_size from INI within the bounds of
2048-4096

Change-Id: I17ad727cea74fc559d6407d3c8662cb6a4cd6b0a
CRs-Fixed: 3631271
This commit is contained in:
Ruben Columbus
2023-10-03 15:51:30 -07:00
committato da Rahul Choudhary
parent a4a989e5b7
commit 70b5c653d0
13 ha cambiato i file con 109 aggiunte e 26 eliminazioni

Vedi File

@@ -4192,6 +4192,7 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc)
wlan_soc_tx_packet_inspect_attach(psoc, wlan_cfg_ctx);
wlan_soc_local_pkt_capture_cfg_attach(psoc, wlan_cfg_ctx);
wlan_soc_umac_reset_cfg_attach(psoc, wlan_cfg_ctx);
wlan_cfg_ctx->rx_buffer_size = cfg_get(psoc, CFG_DP_RX_BUFFER_SIZE);
return wlan_cfg_ctx;
}
@@ -4445,6 +4446,7 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc)
wlan_cfg_ctx->special_frame_msk =
cfg_get(psoc, CFG_SPECIAL_FRAME_MSK);
wlan_soc_umac_reset_cfg_attach(psoc, wlan_cfg_ctx);
wlan_cfg_ctx->rx_buffer_size = cfg_get(psoc, CFG_DP_RX_BUFFER_SIZE);
return wlan_cfg_ctx;
}
@@ -4853,6 +4855,15 @@ int wlan_cfg_time_control_bp(struct wlan_cfg_dp_soc_ctxt *cfg)
return cfg->time_control_bp;
}
int wlan_cfg_rx_buffer_size(struct wlan_cfg_dp_soc_ctxt *cfg)
{
if (cfg->rx_buffer_size < RX_DATA_BUFFER_SIZE)
qdf_assert_always(0);
return cfg->rx_buffer_size;
}
qdf_export_symbol(wlan_cfg_rx_buffer_size);
int wlan_cfg_qref_control_size(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->qref_control_size;