git: 54ad06cad10c - main - ifconfig: 802.11: also print IEEE80211_CIPHER_AES_GCM_128 information

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Mon, 09 Jun 2025 21:44:59 UTC
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=54ad06cad10c3822784389b0956f92a1c7041abd

commit 54ad06cad10c3822784389b0956f92a1c7041abd
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-05-27 19:38:18 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-06-09 21:44:25 +0000

    ifconfig: 802.11: also print IEEE80211_CIPHER_AES_GCM_128 information
    
    While we currently do not print the STA unicast key (PTK) we will not
    see this but it is for fullness and in preparations for follow-up
    hanges.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
    Reviewed by:    adrian
    Differential Revision: https://reviews.freebsd.org/D50553
---
 sbin/ifconfig/ifieee80211.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index 1a9f0450a253..0236bb5802e7 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -4757,6 +4757,9 @@ printcipher(int s, struct ieee80211req *ireq, int keylenop)
 	case IEEE80211_CIPHER_AES_CCM:
 		printf("AES-CCM");
 		break;
+	case IEEE80211_CIPHER_AES_GCM_128:
+		printf("AES-GCM");
+		break;
 	case IEEE80211_CIPHER_CKIP:
 		printf("CKIP");
 		break;
@@ -4801,6 +4804,9 @@ printkey(if_ctx *ctx, const struct ieee80211req_key *ik)
 	case IEEE80211_CIPHER_AES_CCM:
 		LINE_CHECK("AES-CCM %u:%u-bit", ik->ik_keyix+1, 8*keylen);
 		break;
+	case IEEE80211_CIPHER_AES_GCM_128:
+		LINE_CHECK("AES-GCM %u:%u-bit", ik->ik_keyix+1, 8*keylen);
+		break;
 	case IEEE80211_CIPHER_CKIP:
 		LINE_CHECK("CKIP %u:%u-bit", ik->ik_keyix+1, 8*keylen);
 		break;