qcacmn: Move cfr mon filter cdp func ptr to mon ops structure

Move cfr monitor filter cdp func ptr to cdp mon ops structure.
cfr monitor filter cdp function is different for 1.0 and 2.0
hence moving the func ptr to mon ops structure ensures that
func ptr is initialized appropriately.

Change-Id: I82b9c85e96f2f219521ae6ed908ade120081c748
CRs-Fixed: 3428791
This commit is contained in:
Jeevan Kukkalli
2023-03-08 16:43:04 +05:30
committed by Madan Koyyalamudi
parent 9ee8244cd8
commit 34bcece450
6 changed files with 13 additions and 14 deletions

View File

@@ -1138,6 +1138,6 @@ static void dp_cfr_filter_1_0(struct cdp_soc_t *soc_hdl,
void dp_cfr_filter_register_1_0(struct cdp_ops *ops)
{
ops->cfr_ops->txrx_cfr_filter = dp_cfr_filter_1_0;
ops->mon_ops->txrx_cfr_filter = dp_cfr_filter_1_0;
}
#endif

View File

@@ -3404,6 +3404,6 @@ static void dp_cfr_filter_2_0(struct cdp_soc_t *soc_hdl,
void dp_cfr_filter_register_2_0(struct cdp_ops *ops)
{
ops->cfr_ops->txrx_cfr_filter = dp_cfr_filter_2_0;
ops->mon_ops->txrx_cfr_filter = dp_cfr_filter_2_0;
}
#endif

View File

@@ -6304,9 +6304,6 @@ void dp_mon_cdp_ops_deregister(struct dp_soc *soc)
dp_mon_cdp_mon_ops_deregister(ops);
#if defined(WLAN_CFR_ENABLE) && defined(WLAN_ENH_CFR_ENABLE)
ops->cfr_ops->txrx_cfr_filter = NULL;
#endif
ops->cmn_drv_ops->txrx_set_monitor_mode = NULL;
ops->cmn_drv_ops->txrx_get_mon_vdev_from_pdev = NULL;
#ifdef DP_PEER_EXTENDED_API