From 92fefea5eddc379c3797333c0bb56df5861f33df Mon Sep 17 00:00:00 2001 From: yeshwanth sriram guntuka Date: Tue, 28 Feb 2017 15:49:22 +0530 Subject: [PATCH] qcacld-3.0: Fix rate population on channel change of SAP On channel change of SAP to 5G, SAP is populating 2.4G basic rates in 5G beacon. Set number of supported and extended rates to zero for populating rates based on network type. CSR layer will pick default rates if hostapd rates are passed as zero Change-Id: Ia393f7b6067f31dc8f792cda2bd74c441c2112e6 CRs-Fixed: 1105867 --- core/sap/src/sap_module.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index ccd1598064d7..9b172f609a3c 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -2740,6 +2740,8 @@ wlansap_channel_change_request(void *pSapCtx, uint8_t target_channel) ch_params->center_freq_seg0; sapContext->csr_roamProfile.ch_params.center_freq_seg1 = ch_params->center_freq_seg1; + sapContext->csr_roamProfile.supported_rates.numRates = 0; + sapContext->csr_roamProfile.extended_rates.numRates = 0; qdf_ret_status = sme_roam_channel_change_req(hHal, sapContext->bssid, ch_params, &sapContext->csr_roamProfile);