diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2026-06-22 00:17:26 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2026-06-22 01:21:38 +0000 |
| commit | b58d8df5829233ced7024c30a0a979e2e0a722fd (patch) | |
| tree | f3c662e4b3d73d3c14475a1fc468220ffb7c8ae8 | |
| parent | d4a529ad0d5638ad3e8d27815948b0a7c4628e3f (diff) | |
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
| -rw-r--r-- | sys/compat/linuxkpi/common/src/linux_80211.h | 7 |
1 files changed, 7 insertions, 0 deletions
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(...) \ |
