mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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:
parent
5645dd2803
commit
c15357faae
1 changed files with 13 additions and 0 deletions
|
|
@ -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_*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue