git: 39763d991699 - stable/14 - ifconfig: 802.11: also print IEEE80211_CIPHER_AES_GCM_128 information

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Wed, 11 Jun 2025 09:14:30 UTC
The branch stable/14 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=39763d9916993a2a5a79e3c66c6ad3af728626b7

commit 39763d9916993a2a5a79e3c66c6ad3af728626b7
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-10 23:41:01 +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
    Reviewed by:    adrian
    Differential Revision: https://reviews.freebsd.org/D50553
    
    (cherry picked from commit 54ad06cad10c3822784389b0956f92a1c7041abd)
---
 sbin/ifconfig/ifieee80211.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index 182266eb642a..6964a68b6ba6 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -4747,6 +4747,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;
@@ -4791,6 +4794,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;