qcacmn: Add support for chan_nf noise floor

Add function for extract_nfcal_power_ev_param and
register wmi_pdev_nfcal_power_all_channels_event_id event
to support noise floor in HK.

Change-Id: I6eef823b507be94c65df026664244eec7fc07e24
CRs-Fixed: 2157972
This commit is contained in:
nobelj
2018-01-25 16:35:36 -08:00
committed by Nitesh Shrivastav
parent e6f8be37e2
commit f74583b2be
3 changed files with 99 additions and 10 deletions

View File

@@ -4881,15 +4881,17 @@ QDF_STATUS wmi_send_ext_resource_config(void *wmi_hdl,
/**
* wmi_unified_nf_dbr_dbm_info_get_cmd_send() - WMI request nf info function
* @param wmi_handle : handle to WMI.
* @mac_id: mac_id
*
* @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS wmi_unified_nf_dbr_dbm_info_get_cmd_send(void *wmi_hdl)
QDF_STATUS wmi_unified_nf_dbr_dbm_info_get_cmd_send(void *wmi_hdl,
uint8_t mac_id)
{
wmi_unified_t wmi = (wmi_unified_t) wmi_hdl;
if (wmi->ops->send_nf_dbr_dbm_info_get_cmd)
return wmi->ops->send_nf_dbr_dbm_info_get_cmd(wmi);
return wmi->ops->send_nf_dbr_dbm_info_get_cmd(wmi, mac_id);
return QDF_STATUS_E_FAILURE;
}