qcacmn: Add API to get pdev vdev count

Add API to get vdev counts of pdev.

CRs-Fixed: 2101491
Change-Id: I320aaecb5c13e5ecfef4623d4df35c9ce4d639df
This commit is contained in:
Subrat Mishra 2017-08-30 10:28:31 +05:30 • committed by snandini
commit c15357faae

View file

@ -852,4 +852,17 @@ static inline void wlan_pdev_decr_peer_count(struct wlan_objmgr_pdev *pdev)
{
pdev->pdev_objmgr.wlan_peer_count--;
}
/**
* wlan_pdev_get_vdev_count() - get PDEV vdev count
* @pdev: PDEV object
*
* API to get vdev count from PDEV
*
* Return: vdev_count - pdev's vdev count
*/
static inline uint8_t wlan_pdev_get_vdev_count(struct wlan_objmgr_pdev *pdev)
{
return pdev->pdev_objmgr.wlan_vdev_count;
}
#endif /* _WLAN_OBJMGR_PDEV_H_*/