prima: max_scan_ie_len should have the combined lenght of all IEs
max_scan_ie_len of wiphy structure should be updated with the
max length of IEs which can be added to a probe request frame.
In current implement it has been updated with the max length of
an IE.
Change-Id: I28ff17e9de472040da3f85a02d3b31cfe46811b4
CRs-Fixed: 820817
diff --git a/CORE/SME/inc/csrApi.h b/CORE/SME/inc/csrApi.h
index 83e0e50..37ff364 100644
--- a/CORE/SME/inc/csrApi.h
+++ b/CORE/SME/inc/csrApi.h
@@ -915,7 +915,7 @@
* It has the IE byte stream for additional IE,
* which can be WSC IE and/or P2P IE
*/
- tANI_U8 addIEScan[SIR_MAC_MAX_IE_LENGTH+2]; //Additional IE information.
+ tANI_U8 addIEScan[SIR_MAC_MAX_ADD_IE_LENGTH+2]; //Additional IE information.
tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc
tANI_U8 *pAddIEAssoc; //If not null, it has the IE byte stream for additional IE, which can be WSC IE and/or P2P IE
diff --git a/CORE/SME/inc/csrInternal.h b/CORE/SME/inc/csrInternal.h
index c2fcf81..e80f980 100644
--- a/CORE/SME/inc/csrInternal.h
+++ b/CORE/SME/inc/csrInternal.h
@@ -935,7 +935,7 @@
/* This contains the additional IE in (unicast)
* probe request at the time of join
*/
- tANI_U8 addIEScan[SIR_MAC_MAX_IE_LENGTH+2];
+ tANI_U8 addIEScan[SIR_MAC_MAX_ADD_IE_LENGTH+2];
tANI_U32 nAddIEAssocLength; //the byte count for pAddIeAssocIE
tANI_U8 *pAddIEAssoc; //this contains the additional IE in (re) assoc request
diff --git a/CORE/SME/src/csr/csrApiRoam.c b/CORE/SME/src/csr/csrApiRoam.c
index 68d8c69..4d1c09c 100644
--- a/CORE/SME/src/csr/csrApiRoam.c
+++ b/CORE/SME/src/csr/csrApiRoam.c
@@ -6282,8 +6282,8 @@
#endif /* FEATURE_WLAN_WAPI */
if(pSrcProfile->nAddIEScanLength)
{
- memset(pDstProfile->addIEScan, 0 , SIR_MAC_MAX_IE_LENGTH);
- if ( SIR_MAC_MAX_IE_LENGTH >= pSrcProfile->nAddIEScanLength)
+ memset(pDstProfile->addIEScan, 0 , SIR_MAC_MAX_ADD_IE_LENGTH);
+ if ( SIR_MAC_MAX_ADD_IE_LENGTH >= pSrcProfile->nAddIEScanLength)
{
vos_mem_copy(pDstProfile->addIEScan, pSrcProfile->addIEScan,
pSrcProfile->nAddIEScanLength);
@@ -14989,7 +14989,7 @@
#endif /* FEATURE_WLAN_WAPI */
if (pSession->nAddIEScanLength)
{
- memset(pSession->addIEScan, 0 , SIR_MAC_MAX_IE_LENGTH);
+ memset(pSession->addIEScan, 0 , SIR_MAC_MAX_ADD_IE_LENGTH);
}
pSession->nAddIEScanLength = 0;
diff --git a/CORE/SME/src/csr/csrUtil.c b/CORE/SME/src/csr/csrUtil.c
index 48308a4..ff37969 100644
--- a/CORE/SME/src/csr/csrUtil.c
+++ b/CORE/SME/src/csr/csrUtil.c
@@ -6137,7 +6137,7 @@
if (pProfile->nAddIEScanLength)
{
- memset(pProfile->addIEScan, 0 , SIR_MAC_MAX_IE_LENGTH+2);
+ memset(pProfile->addIEScan, 0 , SIR_MAC_MAX_ADD_IE_LENGTH+2);
pProfile->nAddIEScanLength = 0;
}