Parcourir la source

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
Liangwei Dong il y a 2 ans
Parent
commit
198a53016d
1 fichiers modifiés avec 0 ajouts et 3 suppressions
  1. 0 3
      components/mlme/core/src/wlan_mlme_main.c

+ 0 - 3
components/mlme/core/src/wlan_mlme_main.c

@@ -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;