summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingying Tang <yintang@codeaurora.org>2016-09-28 17:56:30 +0800
committerqcabuildsw <qcabuildsw@localhost>2016-11-09 18:52:20 -0800
commit590815e8b31fc6c5acf9898403c546c822d78e80 (patch)
tree56585e508a05b3edf7b99b28d8ba0aef803c4123
parent45bef5939e276cb032e8562fd7fddb0b6eb5c00f (diff)
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
-rw-r--r--core/mac/src/pe/lim/lim_ft_preauth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/mac/src/pe/lim/lim_ft_preauth.c b/core/mac/src/pe/lim/lim_ft_preauth.c
index 7a099ecab85f..42c9d386d521 100644
--- a/core/mac/src/pe/lim/lim_ft_preauth.c
+++ b/core/mac/src/pe/lim/lim_ft_preauth.c
@@ -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;