qcacmn: Target if Changes to send usenol pdev param

Add changes in target interface layer to send usenol pdev param to FW.

Change-Id: I5526066f34ae27234f9542fdd54901e6eb915fdb
CRs-Fixed: 2328894
This commit is contained in:
Priyadarshnee S
2018-10-08 19:37:00 +05:30
committed by nshrivas
parent 9ef7846b6a
commit 8bf0fa04eb
3 changed files with 45 additions and 0 deletions

View File

@@ -60,5 +60,23 @@ static QDF_STATUS target_process_bang_radar_cmd(struct wlan_objmgr_pdev *pdev,
}
#endif
/**
* target_send_usenol_pdev_param - send usenol pdev param to FW.
* @pdev: Pointer to pdev object.
* @usenol: Value of user configured usenol.
*
* Return: QDF_STATUS
*/
#if defined(WLAN_DFS_FULL_OFFLOAD) && defined(QCA_DFS_NOL_OFFLOAD)
QDF_STATUS target_send_usenol_pdev_param(struct wlan_objmgr_pdev *pdev,
bool usenol);
#else
static inline QDF_STATUS
target_send_usenol_pdev_param(struct wlan_objmgr_pdev *pdev,
bool usenol)
{
return QDF_STATUS_SUCCESS;
}
#endif
#endif /* _TARGET_IF_DFS_FULL_OFFLOAD_H_ */

View File

@@ -378,5 +378,7 @@ QDF_STATUS target_if_register_dfs_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
&target_if_dfs_send_avg_params_to_fw;
dfs_tx_ops->dfs_is_tgt_offload = &target_if_dfs_offload;
dfs_tx_ops->dfs_send_usenol_pdev_param =
&target_send_usenol_pdev_param;
return QDF_STATUS_SUCCESS;
}

View File

@@ -243,3 +243,28 @@ static QDF_STATUS target_process_bang_radar_cmd(
return QDF_STATUS_SUCCESS;
}
#endif
#if defined(WLAN_DFS_FULL_OFFLOAD) && defined(QCA_DFS_NOL_OFFLOAD)
QDF_STATUS target_send_usenol_pdev_param(struct wlan_objmgr_pdev *pdev,
bool usenol)
{
QDF_STATUS status;
wmi_unified_t wmi_handle;
if (!pdev) {
target_if_err("null pdev");
return QDF_STATUS_E_FAILURE;
}
wmi_handle = get_wmi_unified_hdl_from_pdev(pdev);
if (!wmi_handle) {
target_if_err("null wmi_handle");
return QDF_STATUS_E_FAILURE;
}
status = wmi_send_usenol_pdev_param(wmi_handle, usenol, pdev);
if (QDF_IS_STATUS_ERROR(status))
target_if_err("dfs: usenol_pdev_param send failed %d", status);
return status;
}
#endif