浏览代码

qcacmn: Enable EAPOL logging for FILS Authentication

In api __qdf_nbuf_data_get_eapol_subtype(), the EAPOL key_info
is evaluated only for SAE authentication, which result in EAPOL
logging failure for FILS authentication.

Check ACK and Secure bit in EAPOL key_info to determine
EAPOL packet irrespective of authentication protocol.

Change-Id: Ieef143d36d85cbf473b682810d658de93dbbdad2
CRs-Fixed: 3268362
vijaraj 2 年之前
父节点
当前提交
8b843ae157
共有 2 个文件被更改,包括 6 次插入7 次删除
  1. 0 5
      qdf/inc/qdf_nbuf.h
  2. 6 2
      qdf/linux/src/qdf_nbuf.c

+ 0 - 5
qdf/inc/qdf_nbuf.h

@@ -103,11 +103,6 @@
 #define EAPOL_KEY_LEN_OFFSET			21
 #define EAPOL_PACKET_TYPE_EAP			0
 #define EAPOL_PACKET_TYPE_KEY			3
-#define EAPOL_MASK				0x8013
-#define EAPOL_M1_BIT_MASK			0x8000
-#define EAPOL_M2_BIT_MASK			0x0001
-#define EAPOL_M3_BIT_MASK			0x8013
-#define EAPOL_M4_BIT_MASK			0x0003
 #define EAPOL_KEY_TYPE_MASK			0x0800
 #define EAPOL_KEY_ENCRYPTED_MASK		0x0010
 

+ 6 - 2
qdf/linux/src/qdf_nbuf.c

@@ -1322,6 +1322,11 @@ __qdf_nbuf_data_get_dhcp_subtype(uint8_t *data)
 	return subtype;
 }
 
+#define EAPOL_MASK				0x8002
+#define EAPOL_M1_BIT_MASK			0x8000
+#define EAPOL_M2_BIT_MASK			0x0000
+#define EAPOL_M3_BIT_MASK			0x8002
+#define EAPOL_M4_BIT_MASK			0x0002
 /**
  * __qdf_nbuf_data_get_eapol_subtype() - get the subtype
  *            of EAPOL packet.
@@ -1342,6 +1347,7 @@ __qdf_nbuf_data_get_eapol_subtype(uint8_t *data)
 			(data + EAPOL_KEY_INFO_OFFSET));
 
 	mask = eapol_key_info & EAPOL_MASK;
+
 	switch (mask) {
 	case EAPOL_M1_BIT_MASK:
 		subtype = QDF_PROTO_EAPOL_M1;
@@ -1355,8 +1361,6 @@ __qdf_nbuf_data_get_eapol_subtype(uint8_t *data)
 	case EAPOL_M4_BIT_MASK:
 		subtype = QDF_PROTO_EAPOL_M4;
 		break;
-	default:
-		break;
 	}
 
 	return subtype;