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)
This commit is contained in:
Bjoern A. Zeeb 2025-05-27 19:38:18 +00:00 committed by Franco Fichtner
parent ed8a87939c
commit e965e2f657

View file

@ -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;