qcacmn: Add API to get first vdev of given pdev

Add API to get first vdev of any given pdev.
Change spectral module's API accordingly.

CRs-Fixed: 2234801
Change-Id: I6c5f0aefad4a71610300810531b8c893471306ad
This commit is contained in:
Edayilliam Jayadev
2018-05-02 16:14:14 +05:30
committed by nshrivas
parent df3100c157
commit 8e9eb4f27d
3 changed files with 53 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ spectral_get_vdev(struct wlan_objmgr_pdev *pdev)
qdf_assert_always(pdev);
vdev = wlan_objmgr_get_vdev_by_id_from_pdev(pdev, 0, WLAN_SPECTRAL_ID);
vdev = wlan_objmgr_pdev_get_first_vdev(pdev, WLAN_SPECTRAL_ID);
if (!vdev) {
spectral_warn("Unable to get first vdev of pdev");