qcacld-3.0: Update the phy mode correctly after roaming

After roaming the phy mode gets updated by FW via roam_sync event.
Update wma with the value from the roam_sync event.

Change-Id: Ie4b47ad83866f033bcd92781fdb05bd7456180f5
CRs-Fixed: 2477071
This commit is contained in:
Tushnim Bhattacharyya 2019-06-25 12:17:46 -07:00 • committed by Gerrit - the friendly Code Review server
commit f68b764b54

View file

@ -2884,9 +2884,16 @@ int wma_mlme_roam_synch_event_handler_cb(void *handle, uint8_t *event,
* results in firmware assert.
*/
channel = wlan_freq_to_chan(wma->interfaces[synch_event->vdev_id].mhz);
wma_get_phy_mode_cb(channel,
wma->interfaces[synch_event->vdev_id].chan_width,
&wma->interfaces[synch_event->vdev_id].chanmode);
if (param_buf->chan) {
wma->interfaces[synch_event->vdev_id].chanmode =
WMI_GET_CHANNEL_MODE(param_buf->chan);
} else {
wma_get_phy_mode_cb(channel,
wma->interfaces[synch_event->vdev_id].
chan_width,
&wma->interfaces[synch_event->vdev_id].
chanmode);
}
wma->csr_roam_synch_cb((struct mac_context *)wma->mac_context,
roam_synch_ind_ptr, bss_desc_ptr, SIR_ROAM_SYNCH_COMPLETE);