qcacmn: Define ucfg api to free stats_event

Define ucfg api to free stats_event, since it will be called from
osif and hdd.

Change-Id: Ifeea3e970ddca1ed508960c39a2a39f0ed755bd9
CRs-Fixed: 2231150
This commit is contained in:
Naveen Rawat
2018-04-25 09:34:02 -07:00
committed by nshrivas
parent 581787f9af
commit 1a9ee7dc49
5 changed files with 34 additions and 1 deletions

View File

@@ -68,11 +68,22 @@ int wlan_cfg80211_mc_cp_stats_get_tx_power(struct wlan_objmgr_vdev *vdev,
* @macaddress: mac address
* @rssi_info: stats structure within which rssi info will be populated
*
* Call of this API must call wlan_cfg80211_mc_cp_stats_put_peer_rssi
* API when done with information provided by rssi_info.
* Return: 0 on success, negative value on failure
*/
int wlan_cfg80211_mc_cp_stats_get_peer_rssi(struct wlan_objmgr_vdev *vdev,
uint8_t *macaddress,
struct stats_event *rssi_info);
/**
* wlan_cfg80211_mc_cp_stats_put_peer_rssi() - API to free rssi_info after user
* or caller is done with the buffer/information
* @rssi_info: structure which needs to be freed
*
* Return: None
*/
void wlan_cfg80211_mc_cp_stats_put_peer_rssi(struct stats_event *rssi_info);
#endif /* QCA_SUPPORT_CP_STATS */
#endif /* __WLAN_CFG80211_MC_CP_STATS_H__ */