aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/trace.h')
-rw-r--r--net/wireless/trace.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/net/wireless/trace.h b/net/wireless/trace.h
index 1370d52b1393..3c7aa1221563 100644
--- a/net/wireless/trace.h
+++ b/net/wireless/trace.h
@@ -126,25 +126,33 @@
126#define CHAN_PR_FMT ", band: %d, freq: %u" 126#define CHAN_PR_FMT ", band: %d, freq: %u"
127#define CHAN_PR_ARG __entry->band, __entry->center_freq 127#define CHAN_PR_ARG __entry->band, __entry->center_freq
128 128
129#define CHAN_DEF_ENTRY __field(enum ieee80211_band, band) \ 129#define CHAN_DEF_ENTRY __field(enum ieee80211_band, band) \
130 __field(u16, center_freq) \ 130 __field(u32, control_freq) \
131 __field(u32, channel_type) 131 __field(u32, width) \
132 __field(u32, center_freq1) \
133 __field(u32, center_freq2)
132#define CHAN_DEF_ASSIGN(chandef) \ 134#define CHAN_DEF_ASSIGN(chandef) \
133 do { \ 135 do { \
134 if ((chandef) && (chandef)->chan) { \ 136 if ((chandef) && (chandef)->chan) { \
135 __entry->band = (chandef)->chan->band; \ 137 __entry->band = (chandef)->chan->band; \
136 __entry->center_freq = \ 138 __entry->control_freq = \
137 (chandef)->chan->center_freq; \ 139 (chandef)->chan->center_freq; \
138 __entry->channel_type = (chandef)->_type; \ 140 __entry->width = (chandef)->width; \
141 __entry->center_freq1 = (chandef)->center_freq1;\
142 __entry->center_freq2 = (chandef)->center_freq2;\
139 } else { \ 143 } else { \
140 __entry->band = 0; \ 144 __entry->band = 0; \
141 __entry->center_freq = 0; \ 145 __entry->control_freq = 0; \
142 __entry->channel_type = 0; \ 146 __entry->width = 0; \
147 __entry->center_freq1 = 0; \
148 __entry->center_freq2 = 0; \
143 } \ 149 } \
144 } while (0) 150 } while (0)
145#define CHAN_DEF_PR_FMT ", band: %d, freq: %u, chantype: %d" 151#define CHAN_DEF_PR_FMT \
146#define CHAN_DEF_PR_ARG __entry->band, __entry->center_freq, \ 152 ", band: %d, control freq: %u, width: %d, cf1: %u, cf2: %u"
147 __entry->channel_type 153#define CHAN_DEF_PR_ARG __entry->band, __entry->control_freq, \
154 __entry->width, __entry->center_freq1, \
155 __entry->center_freq2
148 156
149#define SINFO_ENTRY __field(int, generation) \ 157#define SINFO_ENTRY __field(int, generation) \
150 __field(u32, connected_time) \ 158 __field(u32, connected_time) \