qcacmn: Add support to query RCPI info

RCPI is measure of received RF power in the selected channel for a
received frame and is measured at the antenna connector and shall be
measured over an entire frame. It is a monotonically increasing,
logarithmic function of received power level.

Wlan firmware computes RCPI.

Add host support to query firmware for RCPI information of
peer mac address in sta, p2p client, softap and p2p go modes.

Change-Id: I27fe45e993bd9b157fe33ca08a56330c1c950d16
CRs-Fixed: 1093187
This commit is contained in:
Rajeev Kumar Sirasanagandla
2016-11-22 21:28:54 +05:30
committed by snandini
parent 2772b9ca34
commit ab4275dde4
2 changed files with 127 additions and 0 deletions

View File

@@ -6718,6 +6718,31 @@ QDF_STATUS wmi_unified_send_coex_config_cmd(void *wmi_hdl,
return QDF_STATUS_E_FAILURE;
}
QDF_STATUS wmi_unified_send_request_get_rcpi_cmd(void *wmi_hdl,
struct rcpi_req *get_rcpi_param)
{
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
if (wmi_handle->ops->send_get_rcpi_cmd)
return wmi_handle->ops->send_get_rcpi_cmd(wmi_handle,
get_rcpi_param);
return QDF_STATUS_E_FAILURE;
}
QDF_STATUS wmi_extract_rcpi_response_event(void *wmi_hdl, void *evt_buf,
struct rcpi_res *res)
{
wmi_unified_t wmi_handle = (wmi_unified_t)wmi_hdl;
struct wmi_ops *ops = wmi_handle->ops;
if (ops->extract_rcpi_response_event)
return ops->extract_rcpi_response_event(wmi_handle, evt_buf,
res);
return QDF_STATUS_E_FAILURE;
}
/**
* wmi_extract_peer_delete_response_event() -
* extract vdev id and peer mac addresse from peer delete response event