From 7fd216a62936f965ff84aaa6b3a2222a6540313b Mon Sep 17 00:00:00 2001 From: bings Date: Wed, 14 Mar 2018 15:02:45 +0800 Subject: [PATCH] qcacmn: Configure phyerr filter offload before sap starts Do not send phyerr filter offload to FW when dfs module is doing initialization, because in target_if_dfs_set_phyerr_filter_offload routine GET_WMI_HDL_FROM_PDEV returns NULL at this time. Configure phyerr filter offload before sap starts. Change-Id: I60436fc1e142937383a3714c727166bc5fa8d0db CRs-Fixed: 2204683 --- umac/dfs/core/src/dfs.h | 7 ------- umac/dfs/core/src/misc/dfs.c | 12 ------------ 2 files changed, 19 deletions(-) diff --git a/umac/dfs/core/src/dfs.h b/umac/dfs/core/src/dfs.h index ca3dbcd9d1a3..8cf94f01750a 100644 --- a/umac/dfs/core/src/dfs.h +++ b/umac/dfs/core/src/dfs.h @@ -2154,11 +2154,4 @@ wlan_psoc_get_dfs_txops(struct wlan_objmgr_psoc *psoc); */ void dfs_nol_free_list(struct wlan_dfs *dfs); -/** - * dfs_set_phyerr_filter_offload - config phyerr filter offload. - * @dfs: Pointer to wlan_dfs structure. - * - * Return: None - */ -void dfs_set_phyerr_filter_offload(struct wlan_dfs *dfs); #endif /* _DFS_H_ */ diff --git a/umac/dfs/core/src/misc/dfs.c b/umac/dfs/core/src/misc/dfs.c index fc95116637f8..2332eae7e8a6 100644 --- a/umac/dfs/core/src/misc/dfs.c +++ b/umac/dfs/core/src/misc/dfs.c @@ -276,7 +276,6 @@ int dfs_main_attach(struct wlan_dfs *dfs) dfs->dfs_phyerr_w53_counter = 0; dfs->dfs_pri_multiplier = 2; dfs_get_radars(dfs); - dfs_set_phyerr_filter_offload(dfs); return 0; @@ -1080,14 +1079,3 @@ void dfs_update_cur_chan_flags(struct wlan_dfs *dfs, dfs->dfs_curchan->dfs_ch_flags = flags; dfs->dfs_curchan->dfs_ch_flagext = flagext; } - -#ifdef QCA_MCL_DFS_SUPPORT -void dfs_set_phyerr_filter_offload(struct wlan_dfs *dfs) -{ - tgt_dfs_set_phyerr_filter_offload(dfs->dfs_pdev_obj); -} -#else -void dfs_set_phyerr_filter_offload(struct wlan_dfs *dfs) -{ -} -#endif