qcacmn: Add function to reset mon interrupt mask

Add function to reset monitor interrupt mask.

Change-Id: If40093cc87dc02432645ec687b00fe856894238d
CRs-Fixed: 3007273
This commit is contained in:
Jeevan Kukkalli
2021-08-04 12:15:07 +05:30
committed by Madan Koyyalamudi
parent 2ee6da1686
commit 2536fbaf5c
2 changed files with 26 additions and 0 deletions

View File

@@ -448,6 +448,24 @@ uint32_t dp_soc_get_mon_mask_for_interrupt_mode(struct dp_soc *soc, int intr_ctx
return wlan_cfg_get_rx_mon_ring_mask(soc->wlan_cfg_ctx, intr_ctx_num);
}
/**
* dp_soc_reset_mon_intr_mask() - reset mon intr mask
* @soc: pointer to dp_soc handle
*
* Return:
*/
void dp_soc_reset_mon_intr_mask(struct dp_soc *soc)
{
int i;
for (i = 0; i < wlan_cfg_get_num_contexts(soc->wlan_cfg_ctx); i++) {
soc->intr_ctx[i].rx_mon_ring_mask = 0;
soc->intr_ctx[i].host2rxdma_mon_ring_mask = 0;
}
}
qdf_export_symbol(dp_soc_reset_mon_intr_mask);
/*
* dp_service_lmac_rings()- timer to reap lmac rings
* @arg: SoC Handle