From e965e2f6573d0358a0159a90be770e4e1894076c Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Tue, 27 May 2025 19:38:18 +0000 Subject: [PATCH] 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 182266eb642..6964a68b6ba 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;