summaryrefslogtreecommitdiff
path: root/CORE/SAP/src/sapModule.c
diff options
context:
space:
mode:
authorPeng Xu <pxu@qca.qualcomm.com>2015-07-14 14:49:45 -0700
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2015-07-27 15:58:56 +0530
commitb5bebcfb82cf357e31f37cf55e3b0a4e8507bfbc (patch)
treef90fbfd2dc6f7840b303cf343467fa37f83c1dda /CORE/SAP/src/sapModule.c
parent6d1437cd833e0c6e2aeee2e26da5d708605577f5 (diff)
qca-cld2.0: Add secondary channel info for channel bonding
For 2.4G HT40 case, secondary channel information is needed when setting the channel bonding mode. Add secondary channel when invoking sme_SelectCBMode function. Change-Id: Ic252cfea67e69cb8510697c143408a6f35f84c28 CRs-fixed: 872309
Diffstat (limited to 'CORE/SAP/src/sapModule.c')
-rw-r--r--CORE/SAP/src/sapModule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/CORE/SAP/src/sapModule.c b/CORE/SAP/src/sapModule.c
index 4186d69245ec..d746f6a811db 100644
--- a/CORE/SAP/src/sapModule.c
+++ b/CORE/SAP/src/sapModule.c
@@ -834,6 +834,7 @@ WLANSAP_StartBss
pSapCtx->pUsrContext = pUsrContext;
pSapCtx->enableOverLapCh = pConfig->enOverLapCh;
pSapCtx->acs_cfg = &pConfig->acs_cfg;
+ pSapCtx->secondary_ch = pConfig->sec_ch;
//Set the BSSID to your "self MAC Addr" read the mac address from Configuation ITEM received from HDD
pSapCtx->csrRoamProfile.BSSIDs.numOfBSSIDs = 1;
@@ -2839,7 +2840,7 @@ WLANSAP_ChannelChangeRequest(v_PVOID_t pSapCtx, tANI_U8 tArgetChannel)
*/
cbMode = pMac->sap.SapDfsInfo.new_cbMode;
vhtChannelWidth = pMac->sap.SapDfsInfo.new_chanWidth;
- sme_SelectCBMode(hHal, phyMode, tArgetChannel, &vhtChannelWidth,
+ sme_SelectCBMode(hHal, phyMode, tArgetChannel, 0, &vhtChannelWidth,
pMac->sap.SapDfsInfo.new_chanWidth);
sapContext->csrRoamProfile.vht_channel_width = vhtChannelWidth;
sapContext->vht_channel_width = vhtChannelWidth;
@@ -2977,7 +2978,7 @@ WLANSAP_DfsSendCSAIeRequest(v_PVOID_t pSapCtx)
vht_ch_width = pMac->sap.SapDfsInfo.new_chanWidth;
cbmode = sme_SelectCBMode(hHal,
sapContext->csrRoamProfile.phyMode,
- pMac->sap.SapDfsInfo.target_channel,
+ pMac->sap.SapDfsInfo.target_channel, 0,
&vht_ch_width, sapContext->ch_width_orig);
if (pMac->sap.SapDfsInfo.target_channel <= 14 ||