git: a31e3e0d61e5 - stable/15 - LinuxKPI: 802.11: introduce TRACE_RATES()

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Mon, 29 Jun 2026 06:34:38 UTC
The branch stable/15 has been updated by bz:

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

commit a31e3e0d61e5250478b6f59c9c31485fa7a9cb68
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-06-22 00:17:26 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-06-29 03:54:37 +0000

    LinuxKPI: 802.11: introduce TRACE_RATES()
    
    Add a tracing bit for tracing rates related changes introduced in
    followup commits.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit b58d8df5829233ced7024c30a0a979e2e0a722fd)
---
 sys/compat/linuxkpi/common/src/linux_80211.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211.h b/sys/compat/linuxkpi/common/src/linux_80211.h
index 063be4251ccc..91751c0b4de5 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.h
+++ b/sys/compat/linuxkpi/common/src/linux_80211.h
@@ -74,6 +74,7 @@
 #define	D80211_TRACEX_DUMP	(D80211_TRACE_TX_DUMP|D80211_TRACE_RX_DUMP)
 #define	D80211_TRACE_STA	0x00010000
 #define	D80211_TRACE_HW_CRYPTO	0x00020000
+#define	D80211_TRACE_RATES	0x00040000
 #define	D80211_TRACE_MO		0x00100000
 #define	D80211_TRACE_MODE	0x0f000000
 #define	D80211_TRACE_MODE_HT	0x01000000
@@ -90,9 +91,15 @@
     if (linuxkpi_debug_80211 & D80211_SCAN_BEACON)			\
 	printf("%s:%d: %s SCAN " fmt "\n",				\
 	    __func__, __LINE__, ic->ic_name, ##__VA_ARGS__)
+#define	TRACE_RATES(fmt, ...)						\
+    if (linuxkpi_debug_80211 & D80211_TRACE_RATES)			\
+	printf("%s:%d: LKPI80211 RATES " fmt "\n",			\
+	    __func__, __LINE__, ##__VA_ARGS__);
+
 #else
 #define	TRACE_SCAN(...)		do {} while (0)
 #define	TRACE_SCAN_BEACON(...)	do {} while (0)
+#define	TRACE_RATES(...)	do {} while(0)
 #endif
 
 #define	IMPROVE_TXQ(...)						\