diff options
| -rw-r--r-- | core/wma/src/wma_scan_roam.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c index f365b8b71a6c..f418459a0a3d 100644 --- a/core/wma/src/wma_scan_roam.c +++ b/core/wma/src/wma_scan_roam.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -3296,9 +3296,14 @@ int wma_roam_synch_event_handler(void *handle, uint8_t *event, * firmware assert. */ channel = cds_freq_to_chan(wma->interfaces[synch_event->vdev_id].mhz); - wma_get_phy_mode(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(channel, + wma->interfaces[synch_event->vdev_id].chan_width, + &wma->interfaces[synch_event->vdev_id].chanmode); + } wma->csr_roam_synch_cb(wma->mac_context, roam_synch_ind_ptr, bss_desc_ptr, SIR_ROAM_SYNCH_COMPLETE); |
