qcacld-3.0: KW issue in wma_update_phymode_on_roam

vdev_mlme was not checked for null before getting dereferenced

Change-Id: I09a696b66304cce525ca6ec382f51799b1b64daf
CRs-Fixed: 2669335
This commit is contained in:
Utkarsh Bhatnagar 2020-04-22 10:29:11 +05:30 • committed by nshrivas
commit d84070d054

View file

@ -2793,6 +2793,8 @@ static void wma_update_phymode_on_roam(tp_wma_handle wma, uint8_t *bssid,
des_chan = wlan_vdev_mlme_get_des_chan(iface->vdev);
des_chan->ch_phymode = bss_phymode;
if (!vdev_mlme)
return;
/* Till conversion is not done in WMI we need to fill fw phy mode */
vdev_mlme->mgmt.generic.phy_mode = wma_host_to_fw_phymode(bss_phymode);