diff options
author | Eliad Peller <eliad@wizery.com> | 2012-11-19 10:05:09 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-19 10:20:37 -0500 |
commit | 49884568628db47a1f8c1f596c6ab3b8db81b73c (patch) | |
tree | c5fb7a7c9c5a4ea3c91b201f5f0bb692eaa8afe1 /net/mac80211/trace.h | |
parent | 3475b0946bd2057497628790d4b4fce4bfdcc304 (diff) |
mac80211: make remain_on_channel() op pass vif param
Drivers (e.g. wl12xx) might need to know the vif
to roc on (mainly in order to configure the
rx filters correctly).
Add the vif to the op params, and update the current
users (iwlwifi) to use the new api.
Signed-off-by: Eliad Peller <eliad@wizery.com>
[fix hwsim]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/trace.h')
-rw-r--r-- | net/mac80211/trace.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h index 758836c85a80..e9579b7a2cd0 100644 --- a/net/mac80211/trace.h +++ b/net/mac80211/trace.h | |||
@@ -1019,13 +1019,16 @@ TRACE_EVENT(drv_get_antenna, | |||
1019 | ); | 1019 | ); |
1020 | 1020 | ||
1021 | TRACE_EVENT(drv_remain_on_channel, | 1021 | TRACE_EVENT(drv_remain_on_channel, |
1022 | TP_PROTO(struct ieee80211_local *local, struct ieee80211_channel *chan, | 1022 | TP_PROTO(struct ieee80211_local *local, |
1023 | struct ieee80211_sub_if_data *sdata, | ||
1024 | struct ieee80211_channel *chan, | ||
1023 | enum nl80211_channel_type chantype, unsigned int duration), | 1025 | enum nl80211_channel_type chantype, unsigned int duration), |
1024 | 1026 | ||
1025 | TP_ARGS(local, chan, chantype, duration), | 1027 | TP_ARGS(local, sdata, chan, chantype, duration), |
1026 | 1028 | ||
1027 | TP_STRUCT__entry( | 1029 | TP_STRUCT__entry( |
1028 | LOCAL_ENTRY | 1030 | LOCAL_ENTRY |
1031 | VIF_ENTRY | ||
1029 | __field(int, center_freq) | 1032 | __field(int, center_freq) |
1030 | __field(int, channel_type) | 1033 | __field(int, channel_type) |
1031 | __field(unsigned int, duration) | 1034 | __field(unsigned int, duration) |
@@ -1033,14 +1036,16 @@ TRACE_EVENT(drv_remain_on_channel, | |||
1033 | 1036 | ||
1034 | TP_fast_assign( | 1037 | TP_fast_assign( |
1035 | LOCAL_ASSIGN; | 1038 | LOCAL_ASSIGN; |
1039 | VIF_ASSIGN; | ||
1036 | __entry->center_freq = chan->center_freq; | 1040 | __entry->center_freq = chan->center_freq; |
1037 | __entry->channel_type = chantype; | 1041 | __entry->channel_type = chantype; |
1038 | __entry->duration = duration; | 1042 | __entry->duration = duration; |
1039 | ), | 1043 | ), |
1040 | 1044 | ||
1041 | TP_printk( | 1045 | TP_printk( |
1042 | LOCAL_PR_FMT " freq:%dMHz duration:%dms", | 1046 | LOCAL_PR_FMT VIF_PR_FMT " freq:%dMHz duration:%dms", |
1043 | LOCAL_PR_ARG, __entry->center_freq, __entry->duration | 1047 | LOCAL_PR_ARG, VIF_PR_ARG, |
1048 | __entry->center_freq, __entry->duration | ||
1044 | ) | 1049 | ) |
1045 | ); | 1050 | ); |
1046 | 1051 | ||