git: 628d1501f7ec - main - ifconfig: decode 256 bit CCM/GCM ciphers and 256 bit 802.1x/none keymgmt

From: Adrian Chadd <adrian_at_FreeBSD.org>
Date: Fri, 04 Apr 2025 03:24:25 UTC
The branch main has been updated by adrian:

URL: https://cgit.FreeBSD.org/src/commit/?id=628d1501f7ec5674ac06d10861d60e7326e0ef25

commit 628d1501f7ec5674ac06d10861d60e7326e0ef25
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2025-03-24 01:14:21 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2025-04-04 03:23:47 +0000

    ifconfig: decode 256 bit CCM/GCM ciphers and 256 bit 802.1x/none keymgmt
    
    * add AES-GCM-256 and AES-CCM-256 ciphers
    * add WPA-PSK-SHA256 and UNSPEC-SHA256 key management
    
    This allows them to show in ifconfig -v wlan0 list scan, eg
    
    RSN<v1 mc:AES-GCMP-256 uc:AES-CCMP-256+AES-GCMP-256 km:8021X-PSK+8021X-PSK-256>
    
    Differential Revision:  https://reviews.freebsd.org/D49481
    Reviewed by:    thj
---
 sbin/ifconfig/ifieee80211.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index 656e71e325cd..80633e5e9ffc 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -3138,6 +3138,10 @@ rsn_cipher(const u_int8_t *sel)
 		return "AES-OCB";
 	case RSN_SEL(RSN_CSE_GCMP_128):
 		return "AES-GCMP";
+	case RSN_SEL(RSN_CSE_CCMP_256):
+		return "AES-CCMP-256";
+	case RSN_SEL(RSN_CSE_GCMP_256):
+		return "AES-GCMP-256";
 	}
 	return "?";
 #undef WPA_SEL
@@ -3154,6 +3158,10 @@ rsn_keymgmt(const u_int8_t *sel)
 		return "8021X-UNSPEC";
 	case RSN_SEL(RSN_ASE_8021X_PSK):
 		return "8021X-PSK";
+	case RSN_SEL(RSN_ASE_8021X_UNSPEC_SHA256):
+		return "8021X-UNSPEC-SHA256";
+	case RSN_SEL(RSN_ASE_8021X_PSK_SHA256):
+		return "8021X-PSK-256";
 	case RSN_SEL(RSN_ASE_NONE):
 		return "NONE";
 	}