qcacld-3.0: Remove vdev "active" check for get operation chan

The API wlan_get_operation_chan_freq will return 0 if
vdev is starting, which is unexpected.
Fix by remove vdev "active" check for get operation chan API.

Change-Id: I12999a68aa74da931ed847b0b696ef49325daa1d
CRs-Fixed: 3225525
This commit is contained in:
Liangwei Dong
2022-06-21 21:28:23 +08:00
committed by Madan Koyyalamudi
parent 896724d84c
commit 198a53016d

View File

@@ -3245,9 +3245,6 @@ qdf_freq_t wlan_get_operation_chan_freq(struct wlan_objmgr_vdev *vdev)
if (!vdev)
return chan_freq;
if (wlan_vdev_mlme_is_active(vdev) != QDF_STATUS_SUCCESS)
return chan_freq;
chan = wlan_vdev_get_active_channel(vdev);
if (chan)
chan_freq = chan->ch_freq;