diff options
| author | Krunal Soni <ksoni@qca.qualcomm.com> | 2015-06-12 15:01:47 -0700 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-11-24 15:20:03 +0530 |
| commit | b643c8f2175d2078594d327ad3dfbf8bc35c54da (patch) | |
| tree | 6278579f684d761f61b80046179b3698fa161a46 | |
| parent | b870b7a59bb286d140e1d9301bb790b1d8bf70c2 (diff) | |
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
| -rw-r--r-- | CORE/MAC/src/pe/lim/limSendManagementFrames.c | 12 |
1 files changed, 12 insertions, 0 deletions
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"), |
