summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrishna Kumaar Natarajan <kknatara@qca.qualcomm.com>2016-03-28 09:59:39 -0700
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-04-07 15:42:29 +0530
commit0f53209d2b551f569389c188f8fd26e597614355 (patch)
treec157980392513a487d325894b35b0e9ea3e5743e
parent329b4dafb67bae2cdbfc950cfbc4c8ca6cbba00d (diff)
qcacld-2.0: Fix incorrect usage of flag to merge extended capability IE
Fix incorrect usage of boolean flag to merge extended capability IE coming from the userspace. If the flag is initialized to true and when there are no additional IEs coming from the userspace, in limSendProbeReqMgmtFrame driver capabilites are merged with the local buffer which has garbage value leading to incorrect extended capabilities advertised over the air. Change-Id: If4c1b52d525cd6c38f51214f97aa324fadedabf2 CRs-Fixed: 995652
-rw-r--r--CORE/MAC/src/pe/lim/limSendManagementFrames.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/CORE/MAC/src/pe/lim/limSendManagementFrames.c b/CORE/MAC/src/pe/lim/limSendManagementFrames.c
index d809d750c733..cc1037c7eb00 100644
--- a/CORE/MAC/src/pe/lim/limSendManagementFrames.c
+++ b/CORE/MAC/src/pe/lim/limSendManagementFrames.c
@@ -251,7 +251,7 @@ limSendProbeReqMgmtFrame(tpAniSirGlobal pMac,
tANI_U8 smeSessionId = 0;
bool isVHTEnabled = false;
uint16_t addn_ielen = nAdditionalIELen;
- bool extracted_ext_cap_flag = true;
+ bool extracted_ext_cap_flag = false;
tDot11fIEExtCap extracted_ext_cap;
@@ -405,7 +405,6 @@ limSendProbeReqMgmtFrame(tpAniSirGlobal pMac,
&addn_ielen,
&extracted_ext_cap);
if (eSIR_SUCCESS != nSirStatus) {
- extracted_ext_cap_flag = eANI_BOOLEAN_FALSE;
limLog(pMac, LOG1,
FL("Unable to Stripoff ExtCap IE from Probe Req"));
} else {