qcacmn: Add Host Lithium Stats
Add per peer stats Add support to update APSTATS Change QDF_TRACE to DP_TRACE for improved readablility Change-Id: I4be2adf2a1d7f978eb2961a544435d525c97923d CRs-Fixed: 1114641
This commit is contained in:

committed by
Sandeep Puligilla

parent
c0ce628e49
commit
1e7401cbc7
@@ -1361,3 +1361,31 @@ void dp_local_peer_id_free(struct dp_pdev *pdev, struct dp_peer *peer)
|
||||
qdf_spin_unlock_bh(&pdev->local_peer_ids.lock);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* dp_get_peer_mac_addr_frm_id(): get mac address of the peer
|
||||
* @soc_handle: DP SOC handle
|
||||
* @peer_id:peer_id of the peer
|
||||
*
|
||||
* return: vdev_id of the vap
|
||||
*/
|
||||
uint8_t dp_get_peer_mac_addr_frm_id(struct cdp_soc_t *soc_handle,
|
||||
uint16_t peer_id, uint8_t *peer_mac)
|
||||
{
|
||||
struct dp_soc *soc = (struct dp_soc *)soc_handle;
|
||||
struct dp_peer *peer;
|
||||
|
||||
peer = dp_peer_find_by_id(soc, peer_id);
|
||||
|
||||
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG,
|
||||
"soc %p peer_id %d", soc, peer_id);
|
||||
|
||||
if (!peer) {
|
||||
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
|
||||
"peer not found ");
|
||||
return CDP_INVALID_VDEV_ID;
|
||||
}
|
||||
|
||||
qdf_mem_copy(peer_mac, peer->mac_addr.raw, 6);
|
||||
return peer->vdev->vdev_id;
|
||||
}
|
||||
|
Reference in New Issue
Block a user