From 56fe2450b596d900f888fb88e2fe7b2a6944df13 Mon Sep 17 00:00:00 2001 From: Abhijit Pradhan Date: Mon, 4 Jun 2018 16:07:08 +0530 Subject: [PATCH] qcacmn: Cleanup DFS function and corresponding function pointer Remove the function lmac_is_mode_offload and corresponding function pointer dfs_is_mode_offload since it is not used by the DFS component. Change-Id: Ie55f5c8dc89466fa992451373819d148680318f1 CRs-Fixed: 2252565 --- umac/dfs/dispatcher/inc/wlan_dfs_lmac_api.h | 6 ------ umac/dfs/dispatcher/src/wlan_dfs_lmac_api.c | 16 ---------------- .../lmac_if/inc/wlan_lmac_if_def.h | 3 --- 3 files changed, 25 deletions(-) diff --git a/umac/dfs/dispatcher/inc/wlan_dfs_lmac_api.h b/umac/dfs/dispatcher/inc/wlan_dfs_lmac_api.h index 5c3838ba3ad3..99b671e91596 100644 --- a/umac/dfs/dispatcher/inc/wlan_dfs_lmac_api.h +++ b/umac/dfs/dispatcher/inc/wlan_dfs_lmac_api.h @@ -71,12 +71,6 @@ void lmac_dfs_enable(struct wlan_objmgr_pdev *pdev, void lmac_dfs_get_thresholds(struct wlan_objmgr_pdev *pdev, struct wlan_dfs_phyerr_param *param); -/** - * lmac_is_mode_offload() - Check the radio for offload. - * @pdev: Pointer to PDEV structure. - */ -bool lmac_is_mode_offload(struct wlan_objmgr_pdev *pdev); - /** * lmac_get_ah_devid() - Get ah devid. * @pdev: Pointer to PDEV structure. diff --git a/umac/dfs/dispatcher/src/wlan_dfs_lmac_api.c b/umac/dfs/dispatcher/src/wlan_dfs_lmac_api.c index 3cbb46780bfd..bfa0b4ee4ae9 100644 --- a/umac/dfs/dispatcher/src/wlan_dfs_lmac_api.c +++ b/umac/dfs/dispatcher/src/wlan_dfs_lmac_api.c @@ -101,22 +101,6 @@ void lmac_dfs_get_thresholds(struct wlan_objmgr_pdev *pdev, dfs_tx_ops->dfs_get_thresholds(pdev, param); } -bool lmac_is_mode_offload(struct wlan_objmgr_pdev *pdev) -{ - struct wlan_objmgr_psoc *psoc; - struct wlan_lmac_if_dfs_tx_ops *dfs_tx_ops; - bool is_offload = false; - - psoc = wlan_pdev_get_psoc(pdev); - - dfs_tx_ops = &psoc->soc_cb.tx_ops.dfs_tx_ops; - - if (dfs_tx_ops->dfs_is_mode_offload) - dfs_tx_ops->dfs_is_mode_offload(pdev, &is_offload); - - return is_offload; -} - uint16_t lmac_get_ah_devid(struct wlan_objmgr_pdev *pdev) { struct wlan_objmgr_psoc *psoc; diff --git a/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h b/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h index faf909560e1a..f24c90e3c7ed 100644 --- a/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h +++ b/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h @@ -568,7 +568,6 @@ struct wlan_lmac_if_reg_tx_ops { * @dfs_get_ext_busy: Get ext_busy. * @dfs_get_target_type: Get target type. * @dfs_is_countryCode_KOREA_ROC3: Check is county code Korea. - * @dfs_is_mode_offload: Check the radio for offload. * @dfs_get_ah_devid: Get ah devid. * @dfs_get_phymode_info: Get phymode info. * @dfs_reg_ev_handler: Register dfs event handler. @@ -599,8 +598,6 @@ struct wlan_lmac_if_dfs_tx_ops { int *dfs_ext_chan_busy); QDF_STATUS (*dfs_get_target_type)(struct wlan_objmgr_pdev *pdev, uint32_t *target_type); - QDF_STATUS (*dfs_is_mode_offload)(struct wlan_objmgr_pdev *pdev, - bool *is_offload); QDF_STATUS (*dfs_get_ah_devid)(struct wlan_objmgr_pdev *pdev, uint16_t *devid); QDF_STATUS (*dfs_get_phymode_info)(struct wlan_objmgr_pdev *pdev,