summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPragaspathi Thilagaraj <tpragasp@codeaurora.org>2019-12-12 20:12:23 +0530
committernshrivas <nshrivas@codeaurora.org>2020-04-03 08:54:53 -0700
commit2ab5d4bf90e2ecad09107c8aa987420ee718d022 (patch)
tree448110125b9314e1ccfc50d57b45886fd76409c2
parent5e15cc9c509e466f6e8bf86bdcbe7d5cf825965b (diff)
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
-rw-r--r--core/wma/src/wma_scan_roam.c13
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);