Skip to content

Commit 757af6f

Browse files
committed
mac80211: fix chandef tracing bug
The chandef tracing writes center_freq1 twice, so that it is always 0 (no driver supports 80+80 yet) and leaves center_freq2 unset. Fix this mistake. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 112c31f commit 757af6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
__entry->control_freq = (c)->chan->center_freq; \
3737
__entry->chan_width = (c)->width; \
3838
__entry->center_freq1 = (c)->center_freq1; \
39-
__entry->center_freq1 = (c)->center_freq2;
39+
__entry->center_freq2 = (c)->center_freq2;
4040
#define CHANDEF_PR_FMT " control:%d MHz width:%d center: %d/%d MHz"
4141
#define CHANDEF_PR_ARG __entry->control_freq, __entry->chan_width, \
4242
__entry->center_freq1, __entry->center_freq2

0 commit comments

Comments
 (0)