aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/trace.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-11-08 12:31:02 -0500
committerJohannes Berg <johannes.berg@intel.com>2012-11-26 06:42:58 -0500
commit42d97a599eb6b2aab3a401b3e5799a399d6c7652 (patch)
tree1905b71c2092ad299503515dd0d59fa74573cd12 /net/mac80211/trace.h
parent028e8da0723a6f6a00d9d1e3dae9ad448a28987e (diff)
cfg80211: remove remain-on-channel channel type
As mwifiex (and mac80211 in the software case) are the only drivers actually implementing remain-on-channel with channel type, userspace can't be relying on it. This is the case, as it's used only for P2P operations right now. Rather than adding a flag to tell userspace whether or not it can actually rely on it, simplify all the code by removing the ability to use different channel types. Leave only the validation of the attribute, so that if we extend it again later (with the needed capability flag), it can't break userspace sending invalid data. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/trace.h')
-rw-r--r--net/mac80211/trace.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h
index e9579b7a2cd0..bc28346ba207 100644
--- a/net/mac80211/trace.h
+++ b/net/mac80211/trace.h
@@ -1022,15 +1022,14 @@ TRACE_EVENT(drv_remain_on_channel,
1022 TP_PROTO(struct ieee80211_local *local, 1022 TP_PROTO(struct ieee80211_local *local,
1023 struct ieee80211_sub_if_data *sdata, 1023 struct ieee80211_sub_if_data *sdata,
1024 struct ieee80211_channel *chan, 1024 struct ieee80211_channel *chan,
1025 enum nl80211_channel_type chantype, unsigned int duration), 1025 unsigned int duration),
1026 1026
1027 TP_ARGS(local, sdata, chan, chantype, duration), 1027 TP_ARGS(local, sdata, chan, duration),
1028 1028
1029 TP_STRUCT__entry( 1029 TP_STRUCT__entry(
1030 LOCAL_ENTRY 1030 LOCAL_ENTRY
1031 VIF_ENTRY 1031 VIF_ENTRY
1032 __field(int, center_freq) 1032 __field(int, center_freq)
1033 __field(int, channel_type)
1034 __field(unsigned int, duration) 1033 __field(unsigned int, duration)
1035 ), 1034 ),
1036 1035
@@ -1038,7 +1037,6 @@ TRACE_EVENT(drv_remain_on_channel,
1038 LOCAL_ASSIGN; 1037 LOCAL_ASSIGN;
1039 VIF_ASSIGN; 1038 VIF_ASSIGN;
1040 __entry->center_freq = chan->center_freq; 1039 __entry->center_freq = chan->center_freq;
1041 __entry->channel_type = chantype;
1042 __entry->duration = duration; 1040 __entry->duration = duration;
1043 ), 1041 ),
1044 1042