mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
qcacmn: Add a configure interface to get max_peers from OL_IF to DP
Currently max_peer value is hardcoded with DP wlan_cfg. This change adds a generic interface to obtain a configuration parameter from OL_IF and store in DP Change-Id: Id437ab3bcd02fb1cbcbe8b56d55d19780af87066 CRs-Fixed: 2004658
This commit is contained in:
parent
5379474f69
commit
6b0d2a800c
6 changed files with 36 additions and 2 deletions
|
|
@ -182,9 +182,10 @@ struct wlan_cfg_dp_pdev_ctxt {
|
|||
*
|
||||
* Return: wlan_cfg_ctx - Handle to Configuration context
|
||||
*/
|
||||
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_soc_attach(void)
|
||||
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_soc_attach()
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx =
|
||||
qdf_mem_malloc(sizeof(struct wlan_cfg_dp_soc_ctxt));
|
||||
|
||||
|
|
@ -202,8 +203,8 @@ struct wlan_cfg_dp_soc_ctxt *wlan_cfg_soc_attach(void)
|
|||
wlan_cfg_ctx->num_tx_ext_desc_pool = WLAN_CFG_NUM_TXEXT_DESC_POOL;
|
||||
wlan_cfg_ctx->num_tx_desc = WLAN_CFG_NUM_TX_DESC;
|
||||
wlan_cfg_ctx->num_tx_ext_desc = WLAN_CFG_NUM_TX_EXT_DESC;
|
||||
wlan_cfg_ctx->max_peer_id = WLAN_CFG_MAX_PEER_ID;
|
||||
wlan_cfg_ctx->htt_packet_type = WLAN_CFG_HTT_PKT_TYPE;
|
||||
wlan_cfg_ctx->max_peer_id = WLAN_CFG_MAX_PEER_ID;
|
||||
|
||||
for (i = 0; i < WLAN_CFG_INT_NUM_CONTEXTS; i++) {
|
||||
wlan_cfg_ctx->int_tx_ring_mask[i] = tx_ring_mask[i];
|
||||
|
|
@ -249,6 +250,11 @@ void wlan_cfg_set_num_contexts(struct wlan_cfg_dp_soc_ctxt *cfg, int num)
|
|||
cfg->num_int_ctxts = num;
|
||||
}
|
||||
|
||||
void wlan_cfg_set_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val)
|
||||
{
|
||||
cfg->max_peer_id = val;;
|
||||
}
|
||||
|
||||
void wlan_cfg_set_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
||||
int context, int mask)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -106,6 +106,9 @@ void wlan_cfg_set_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|||
int context, int mask);
|
||||
void wlan_cfg_set_rxbuf_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int context,
|
||||
int mask);
|
||||
|
||||
void wlan_cfg_set_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
|
||||
|
||||
/**
|
||||
* wlan_cfg_get_num_contexts() - Number of interrupt contexts to be registered
|
||||
* @wlan_cfg_ctx - Configuration Handle
|
||||
|
|
|
|||
Loading…
Reference in a new issue