mac80211: fix chandef tracing bug
authorJohannes Berg <johannes.berg@intel.com>
Fri, 8 Feb 2013 20:29:59 +0000 (21:29 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2013 17:44:56 +0000 (18:44 +0100)
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>
net/mac80211/trace.h

index 6ca53d64cb28ad67ee9f47a3341f4d7c362720c0..a2ca72ce3380b1d6a159821f1a0c28d688c04bb0 100644 (file)
@@ -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