Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2026 04:25:08 +0000
From:      Bjoern A. Zeeb <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: acba7a62b92f - main - LinuxKPI: 802.11: improve crypto debug logging
Message-ID:  <699e79a4.36f92.77392ff3@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by bz:

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

commit acba7a62b92ff62ca4ae831e9c28fc6ed4f6455a
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-02-25 00:05:36 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-02-25 04:24:50 +0000

    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
---
 sys/compat/linuxkpi/common/src/linux_80211.c | 8 ++++++++
 1 file changed, 8 insertions(+)

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;
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?699e79a4.36f92.77392ff3>