Browse Source

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
Abhijit Pradhan 6 years ago
parent
commit
56fe2450b5

+ 0 - 6
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.

+ 0 - 16
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;

+ 0 - 3
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,