qcacmn: Add support to configure rbm id through ini

For legacy tx monitor, we need msdu completion in sequence.
Modifying the return buffer manager id during enqueue will serialize
the msdu completion.

Return buffer manager will be over ride only when tx_monitor
is turned enabled.

Change-Id: I500065077b59b3ea3561ec8fc49af8cbe58c1dfe
CRs-Fixed: 3539636
此提交包含在:
nobelj
2023-06-23 17:28:51 -07:00
提交者 Rahul Choudhary
父節點 0ef7402a2b
當前提交 6f8e9cffb0
共有 5 個檔案被更改,包括 104 行新增0 行删除

查看文件

@@ -3858,8 +3858,30 @@ wlan_soc_vdev_hw_stats_cfg_attach(struct cdp_ctrl_objmgr_psoc *psoc,
static void wlan_soc_tx_capt_cfg_attach(struct cdp_ctrl_objmgr_psoc *psoc,
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx)
{
int i = 0;
uint8_t rbm_id = 0;
wlan_cfg_ctx->tx_capt_max_mem_allowed =
cfg_get(psoc, CFG_DP_TX_CAPT_MAX_MEM_MB) * 1024 * 1024;
for (i = 0; i < MAX_PDEV_CNT; i++) {
switch (i) {
case 0:
rbm_id = cfg_get(psoc, CFG_DP_TX_CAPT_RADIO_0_RBM_ID);
break;
case 1:
rbm_id = cfg_get(psoc, CFG_DP_TX_CAPT_RADIO_1_RBM_ID);
break;
case 2:
rbm_id = cfg_get(psoc, CFG_DP_TX_CAPT_RADIO_2_RBM_ID);
break;
default:
rbm_id = cfg_get(psoc, CFG_DP_TX_CAPT_RADIO_3_RBM_ID);
break;
}
wlan_cfg_ctx->tx_capt_rbm_id[i] = rbm_id;
}
}
#else
static void wlan_soc_tx_capt_cfg_attach(struct cdp_ctrl_objmgr_psoc *psoc,