Browse Source

qcacmn: Fix FILS IE parsing issue

Fix FILS IE parsing issue in assoc response frame.

Change-Id: I45b554c215280533ae6831d51526b8b98bc46c94
CRs-Fixed: 2329206
Subrat Mishra 6 years ago
parent
commit
d95bfa449c
1 changed files with 4 additions and 6 deletions
  1. 4 6
      umac/cmn_services/crypto/src/wlan_crypto_fils.c

+ 4 - 6
umac/cmn_services/crypto/src/wlan_crypto_fils.c

@@ -143,14 +143,12 @@ fils_parse_ie(qdf_nbuf_t wbuf, uint8_t hdrlen, uint8_t **cap_info,
 				pktlen_left, elem_id);
 				crypto_err("len:%dextid:%d", len, *frm);
 				return QDF_STATUS_E_INVAL;
-		}
+			}
 
-		if (*frm == WLAN_ELEMID_EXT_FILS_SESSION) {
-			fils_found = 1;
-			break;
+			if (*frm == WLAN_ELEMID_EXT_FILS_SESSION) {
+				fils_found = 1;
+				break;
 			}
-		frm++;
-		pktlen_left--;
 		}
 
 		if (len > pktlen_left) {