From 71a0ad2500f4e5c4650f32e4e9da6444ed39dcfe Mon Sep 17 00:00:00 2001 From: Vivek Date: Tue, 27 Mar 2018 15:42:40 +0530 Subject: [PATCH] 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 --- .../obj_mgr/inc/wlan_objmgr_psoc_obj.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/umac/cmn_services/obj_mgr/inc/wlan_objmgr_psoc_obj.h b/umac/cmn_services/obj_mgr/inc/wlan_objmgr_psoc_obj.h index 2d72a0a5a0f8..ed31a4059316 100644 --- a/umac/cmn_services/obj_mgr/inc/wlan_objmgr_psoc_obj.h +++ b/umac/cmn_services/obj_mgr/inc/wlan_objmgr_psoc_obj.h @@ -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 *