diff --git a/drivers/net/wireless/qcacld-2.0/CORE/SYS/legacy/src/utils/src/utilsParser.c b/drivers/net/wireless/qcacld-2.0/CORE/SYS/legacy/src/utils/src/utilsParser.c index e64ce33a361c..8b4ba8995cd1 100644 --- a/drivers/net/wireless/qcacld-2.0/CORE/SYS/legacy/src/utils/src/utilsParser.c +++ b/drivers/net/wireless/qcacld-2.0/CORE/SYS/legacy/src/utils/src/utilsParser.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2015, 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2015,2017,2019 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -151,7 +151,7 @@ tSirRetStatus ConvertWscOpaque( tpAniSirGlobal pMac, { // This is awful, I know, but the old code just rammed the IE into // an opaque array. Note that we need to explicitly add the vendorIE and OUI ! - tANI_U8 curAddIELen = pOld->length; + tANI_U16 curAddIELen = pOld->length; pOld->length = curAddIELen + pNew->num_data + 6; pOld->addIEdata[ curAddIELen++ ] = 0xdd; @@ -171,7 +171,7 @@ tSirRetStatus ConvertP2POpaque( tpAniSirGlobal pMac, { // This is awful, I know, but the old code just rammed the IE into // an opaque array. Note that we need to explicitly add the vendorIE and OUI ! - tANI_U8 curAddIELen = pOld->length; + tANI_U16 curAddIELen = pOld->length; pOld->length = curAddIELen + pNew->num_data + 6; pOld->addIEdata[ curAddIELen++ ] = 0xdd; @@ -192,7 +192,7 @@ tSirRetStatus ConvertWFDOpaque( tpAniSirGlobal pMac, { // This is awful, I know, but the old code just rammed the IE into // an opaque array. Note that we need to explicitly add the vendorIE and OUI ! - tANI_U8 curAddIELen = pOld->length; + tANI_U16 curAddIELen = pOld->length; pOld->length = curAddIELen + pNew->num_data + 6; pOld->addIEdata[ curAddIELen++ ] = 0xdd;