diff --git a/core/mac/src/sys/legacy/src/utils/src/dot11f.c b/core/mac/src/sys/legacy/src/utils/src/dot11f.c index a6051e5c3959..5acb9367c99f 100644 --- a/core/mac/src/sys/legacy/src/utils/src/dot11f.c +++ b/core/mac/src/sys/legacy/src/utils/src/dot11f.c @@ -33,7 +33,7 @@ * * * This file was automatically generated by 'framesc' - * Fri Jul 14 12:29:59 2017 from the following file(s): + * Wed Jul 26 14:38:34 2017 from the following file(s): * * dot11f.frms * @@ -12111,7 +12111,7 @@ static uint32_t unpack_tlv_core(tpAniSirGlobal pCtx, /* Now, *if* we found a hit... */ if (pTlv) { - if (len < pTlv->minSize - npec) { + if (len + (pTlv->sType + pTlv->sLen) < pTlv->minSize - npec) { FRAMES_LOG3(pCtx, FRLOGW, FRFL("The IE %s must be " "at least %d bytes in size, but the size is only " "%d bytes.\n"),