qcacld-3.0: update the return status properly for wlan_mlme_get_sta_ch_width
Return status of the wlan_mlme_get_sta_ch_width is always returning error resulting in caller not updating with the phymode correct the vdev object. When the kernel is querying phymode via cfg80211_get_channel driver is returning invalid bandwidth post roam resulting in kernel warning. Fix this by returning proper status in wlan_mlme_get_sta_ch_width CRs-Fixed: 3641158 Change-Id: I013f75a3e06768127ffc72776eef6885633e927a
This commit is contained in:

committed by
Ravindra Konda

parent
0d8eee9b75
commit
cc3e7e51d8
@@ -1490,6 +1490,7 @@ QDF_STATUS wlan_mlme_get_sta_ch_width(struct wlan_objmgr_vdev *vdev,
|
||||
phymode = wlan_peer_get_phymode(peer);
|
||||
wlan_peer_obj_unlock(peer);
|
||||
*ch_width = wlan_mlme_get_ch_width_from_phymode(phymode);
|
||||
status = QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
return status;
|
||||
|
Reference in New Issue
Block a user