From f4bee3a7c527d46bb79091fb21012242f4f9e6c5 Mon Sep 17 00:00:00 2001 From: Surabhi Vishnoi Date: Wed, 4 Mar 2020 17:24:05 +0530 Subject: [PATCH] qcacld-3.0: Update the occupied channel list after CSA Currenlty the occupied channel list is not updated with the new channel to which STA gets connected after CSA. This leads to non updation of the scan_list in firmware with the new occupied channel. So firmware goes for a full scan instead of partial scan in case of roam scan trigger. To mitigate this issue, update the occupied channel list with the new channel after CSA, which will lead to updation of scan list in firmware. Change-Id: I21e9bdd3474ecd23e49aabf27c2a9978b158c2ce CRs-Fixed: 2632943 --- core/sme/src/csr/csr_api_roam.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 7e01b0c95927..dcbc706a33aa 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -12172,6 +12172,10 @@ csr_roam_chk_lnk_swt_ch_ind(struct mac_context *mac_ctx, tSirSmeRsp *msg_ptr) return; } session->connectedProfile.op_freq = pSwitchChnInd->freq; + + /* Update the occupied channel list with the new switched channel */ + csr_init_occupied_channels_list(mac_ctx, sessionId); + if (session->pConnectBssDesc) { session->pConnectBssDesc->chan_freq = pSwitchChnInd->freq;