From: Johannes Berg Date: Fri, 8 Feb 2013 20:29:59 +0000 (+0100) Subject: mac80211: fix chandef tracing bug X-Git-Tag: MMI-PSA29.97-13-9~14842^2~28^2^2~26^2~69 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=757af6fefd53628bcfe75f7fbd302c5d4c02eba5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h index 6ca53d64cb28..a2ca72ce3380 100644 --- a/net/mac80211/trace.h +++ b/net/mac80211/trace.h @@ -36,7 +36,7 @@ __entry->control_freq = (c)->chan->center_freq; \ __entry->chan_width = (c)->width; \ __entry->center_freq1 = (c)->center_freq1; \ - __entry->center_freq1 = (c)->center_freq2; + __entry->center_freq2 = (c)->center_freq2; #define CHANDEF_PR_FMT " control:%d MHz width:%d center: %d/%d MHz" #define CHANDEF_PR_ARG __entry->control_freq, __entry->chan_width, \ __entry->center_freq1, __entry->center_freq2