qcacmn: Replace duplicate api's of vdev_connected

Currently, the vdev connection status is checked by getting
the bss peer of that vdev, and if the bss peer is in associated
state then vdev connected status is sent as true. It can happen
vdev is present and bss peer is deleted after getting the bss peer
from vdev pointer. Then bss peer can not be dereferenced to get the
its status.

Instead remove all the duplicate api's tdls_is_vdev_connected,
pmo_core_is_vdev_connected, and wlan_vdev_is_connected with
wlan_vdev_is_up. wlan_vdev_is_up gives success status
if associated.

Change-Id: I863c3c0689f329870bd08c813813c16956135209
CRs-Fixed: 2426092
This commit is contained in:
Bala Venkatesh
2019-03-29 11:27:16 +05:30
committed by nshrivas
parent eb5bf8cfc7
commit f96d9cf159
4 changed files with 2 additions and 33 deletions

View File

@@ -79,7 +79,7 @@ static void wlan_fill_scan_rand_attrs(struct wlan_objmgr_vdev *vdev,
if (wlan_vdev_mlme_get_opmode(vdev) != QDF_STA_MODE)
return;
if (wlan_vdev_is_connected(vdev))
if (wlan_vdev_is_up(vdev) == QDF_STATUS_SUCCESS)
return;
*randomize = true;