mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-16 17:52:46 -04:00
qcacmn: API to get peer count per psoc
Implement API to get the number of peers created within a psoc Change-Id: I4cbb814d00b707355b77be807a462978e22d653a CRs-Fixed: 2213331
This commit is contained in:
parent
f12b0a3463
commit
71a0ad2500
1 changed files with 15 additions and 0 deletions
|
|
@ -1309,6 +1309,21 @@ static inline uint16_t wlan_psoc_get_max_peer_count(
|
|||
return psoc->soc_objmgr.max_peer_count;
|
||||
}
|
||||
|
||||
/**
|
||||
* wlan_psoc_get_peer_count() - get psoc peer count
|
||||
* @psoc: PSOC object
|
||||
*
|
||||
* API to get peer count
|
||||
*
|
||||
* Return: @peer count: peer count
|
||||
*/
|
||||
static inline uint16_t wlan_psoc_get_peer_count(
|
||||
struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return psoc->soc_objmgr.wlan_peer_count;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* DOC: Examples to use PSOC ref count APIs
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue