From b643c8f2175d2078594d327ad3dfbf8bc35c54da Mon Sep 17 00:00:00 2001 From: Krunal Soni Date: Fri, 12 Jun 2015 15:01:47 -0700 Subject: qcacld-2.0: Send the correct supported channel width in Assoc Resp. prima to qcacld-2.0 propagation Currently, if SAP supports 40Mhz, then it sends the supported channel width as 40Mhz irrespective whether STA supports or not. Changes done to check the STA capability for supported channel width and send it accordingly in Assoc Resp. Change-Id: I58ca44b6998d4712521a10285b9fd2a3f825d2ed CRs-Fixed: 728676 --- CORE/MAC/src/pe/lim/limSendManagementFrames.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CORE/MAC/src/pe/lim/limSendManagementFrames.c b/CORE/MAC/src/pe/lim/limSendManagementFrames.c index 69bef859bd9b..d290655d4eda 100644 --- a/CORE/MAC/src/pe/lim/limSendManagementFrames.c +++ b/CORE/MAC/src/pe/lim/limSendManagementFrames.c @@ -1294,6 +1294,18 @@ limSendAssocRspMgmtFrame(tpAniSirGlobal pMac, { limLog(pMac, LOG1, FL("Populate HT IEs in Assoc Response")); PopulateDot11fHTCaps( pMac, psessionEntry, &frm.HTCaps ); + /* + * Check the STA capability and update the HTCaps accordingly + */ + frm.HTCaps.supportedChannelWidthSet = + (pSta->htSupportedChannelWidthSet < + psessionEntry->htSupportedChannelWidthSet) ? + pSta->htSupportedChannelWidthSet : + psessionEntry->htSupportedChannelWidthSet ; + + if (!frm.HTCaps.supportedChannelWidthSet) + frm.HTCaps.shortGI40MHz = 0; + PopulateDot11fHTInfo( pMac, &frm.HTInfo, psessionEntry ); } limLog(pMac, LOG1, FL("SupportedChnlWidth: %d, mimoPS: %d, GF: %d, shortGI20:%d, shortGI40: %d, dsssCck: %d, AMPDU Param: %x"), -- cgit v1.2.3