فهرست منبع

Correctly identify key management algorithms starting with "FT-"

Correctly categorize FT-EAP-SHA384 as WPA3

Signed-off-by: Joerg Werner <schreibubi@gmail.com>
Joerg Werner 2 سال پیش
والد
کامیت
00aab871c5
2فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 4 0
      iwinfo_nl80211.c
  2. 1 1
      iwinfo_utils.c

+ 4 - 0
iwinfo_nl80211.c

@@ -1683,6 +1683,7 @@ static struct {
 	{ "IEEE 802.1X/EAP", 0, IWINFO_KMGMT_8021x },
 	{ "EAP-SUITE-B-192", 4, IWINFO_KMGMT_8021x },
 	{ "EAP-SUITE-B",     4, IWINFO_KMGMT_8021x },
+	{ "EAP-SHA384",      4, IWINFO_KMGMT_8021x },
 	{ "EAP-SHA256",      0, IWINFO_KMGMT_8021x },
 	{ "PSK-SHA256",      0, IWINFO_KMGMT_PSK },
 	{ "NONE",            0, IWINFO_KMGMT_NONE },
@@ -1868,6 +1869,9 @@ static int nl80211_get_encryption(const char *ifname, char *buf)
 				if (!strncmp(p, "WPA-", 4))
 					p += 4;
 
+				if (!strncmp(p, "FT-", 3))
+					p += 3;
+
 				parse_wpa_suites(p, atoi(wpa), &c->wpa_version, &c->auth_suites);
 			}
 

+ 1 - 1
iwinfo_utils.c

@@ -428,11 +428,11 @@ void iwinfo_parse_rsn(struct iwinfo_crypto_entry *c, uint8_t *data, uint8_t len,
 
 				case 11: /* 802.1x Suite-B */
 				case 12: /* 802.1x Suite-B-192 */
+				case 13: /* FT/802.1x SHA-384 */
 					c->wpa_version |= 4;
 					c->auth_suites |= IWINFO_KMGMT_8021x;
 					break;
 
-				case 13: /* FT/802.1x SHA-384 */
 				case 14: /* FILS SHA-256 */
 				case 15: /* FILS SHA-384 */
 				case 16: /* FT/FILS SHA-256 */