qcacld-3.0: Use IE length to determine if that IE is present

Propagate from qcacld-2.0 to qcacld-3.0

In limPerformFTPreAuth(), ft_ies pointer itself is used to determine
whether FT IE is present which is incorrect way to determine. Use
ft_ies_length instead to determine whether FT IE is present.

Change-Id: I36329de0ae41c03383f193b43eea214aed2770ca
CRs-Fixed: 979671
This commit is contained in:
Yingying Tang 2016-09-28 17:56:30 +08:00 • committed by qcabuildsw
commit c3ed865420

View file

@ -237,7 +237,8 @@ void lim_perform_ft_pre_auth(tpAniSirGlobal pMac, QDF_STATUS status,
if (psessionEntry->is11Rconnection &&
psessionEntry->ftPEContext.pFTPreAuthReq) {
/* Only 11r assoc has FT IEs */
if (psessionEntry->ftPEContext.pFTPreAuthReq->ft_ies == NULL) {
if (psessionEntry->ftPEContext.pFTPreAuthReq->ft_ies_length
== 0) {
lim_log(pMac, LOGE,
FL("FTIEs for Auth Req Seq 1 is absent"));
goto preauth_fail;