aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-02-25 00:05:36 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-02-25 04:24:50 +0000
commitacba7a62b92ff62ca4ae831e9c28fc6ed4f6455a (patch)
tree8e4328d280049c460865fb07454078667c24da14
parent96a57fc4bf4edca9a579cc47f9058253c11f8313 (diff)
LinuxKPI: 802.11: improve crypto debug logging
Add a log entry to lkpi_ieee80211_iterate_keys() in order to be able to determine if there are still keys available when a driver calls into this (e.g., iwlwifi does before removing the sta to make sure the keys are gone). Sponsored by: The FreeBSD Foundation MFC after: 3 days
-rw-r--r--sys/compat/linuxkpi/common/src/linux_80211.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
index 550bd417c529..9693e4eec268 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -7106,6 +7106,14 @@ lkpi_ieee80211_iterate_keys(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
struct ieee80211_sta *, struct ieee80211_key_conf *, void *),
void *arg)
{
+#ifdef LINUXKPI_DEBUG_80211
+ if (linuxkpi_debug_80211 & D80211_TRACE_HW_CRYPTO)
+ net80211_vap_printf(LVIF_TO_VAP(VIF_TO_LVIF(vif)),
+ "%s:%d: lsta %6D added_to_drv %d kc[keyix %u] %p\n",
+ __func__, __LINE__, LSTA_TO_STA(lsta)->addr, ":",
+ lsta->added_to_drv, keyix, lsta->kc[keyix]);
+#endif
+
if (!lsta->added_to_drv)
return;