The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=b58d8df5829233ced7024c30a0a979e2e0a722fd
commit b58d8df5829233ced7024c30a0a979e2e0a722fd Author: Bjoern A. Zeeb <[email protected]> AuthorDate: 2026-06-22 00:17:26 +0000 Commit: Bjoern A. Zeeb <[email protected]> CommitDate: 2026-06-22 01:21:38 +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 MFC after: 3 days --- 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(...) \
