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:
@@ -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__ */
|
||||
|
@@ -356,3 +356,8 @@ int wlan_cfg80211_mc_cp_stats_get_peer_rssi(struct wlan_objmgr_vdev *vdev,
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
void wlan_cfg80211_mc_cp_stats_put_peer_rssi(struct stats_event *rssi_info)
|
||||
{
|
||||
ucfg_mc_cp_stats_free_stats_resources(rssi_info);
|
||||
}
|
||||
|
مرجع در شماره جدید
Block a user