diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-12-18 11:20:47 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-05 16:07:12 -0500 |
commit | 21f83589644bb2ed98079bf1e2154c8e70ca6a6c (patch) | |
tree | ede391a8c788a43f7c4ea3baa3367e020d45f179 /net/mac80211/driver-trace.h | |
parent | c96e96354a6c9456cdf1f150eca504e2ea35301e (diff) |
mac80211: implement hardware offload for remain-on-channel
This allows drivers to support remain-on-channel
offload if they implement smarter timing or need
to use a device implementation like iwlwifi.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/driver-trace.h')
-rw-r--r-- | net/mac80211/driver-trace.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/net/mac80211/driver-trace.h b/net/mac80211/driver-trace.h index c2772f23ac9c..49c84218b2f4 100644 --- a/net/mac80211/driver-trace.h +++ b/net/mac80211/driver-trace.h | |||
@@ -933,6 +933,50 @@ TRACE_EVENT(drv_get_antenna, | |||
933 | ) | 933 | ) |
934 | ); | 934 | ); |
935 | 935 | ||
936 | TRACE_EVENT(drv_remain_on_channel, | ||
937 | TP_PROTO(struct ieee80211_local *local, struct ieee80211_channel *chan, | ||
938 | enum nl80211_channel_type chantype, unsigned int duration), | ||
939 | |||
940 | TP_ARGS(local, chan, chantype, duration), | ||
941 | |||
942 | TP_STRUCT__entry( | ||
943 | LOCAL_ENTRY | ||
944 | __field(int, center_freq) | ||
945 | __field(int, channel_type) | ||
946 | __field(unsigned int, duration) | ||
947 | ), | ||
948 | |||
949 | TP_fast_assign( | ||
950 | LOCAL_ASSIGN; | ||
951 | __entry->center_freq = chan->center_freq; | ||
952 | __entry->channel_type = chantype; | ||
953 | __entry->duration = duration; | ||
954 | ), | ||
955 | |||
956 | TP_printk( | ||
957 | LOCAL_PR_FMT " freq:%dMHz duration:%dms", | ||
958 | LOCAL_PR_ARG, __entry->center_freq, __entry->duration | ||
959 | ) | ||
960 | ); | ||
961 | |||
962 | TRACE_EVENT(drv_cancel_remain_on_channel, | ||
963 | TP_PROTO(struct ieee80211_local *local), | ||
964 | |||
965 | TP_ARGS(local), | ||
966 | |||
967 | TP_STRUCT__entry( | ||
968 | LOCAL_ENTRY | ||
969 | ), | ||
970 | |||
971 | TP_fast_assign( | ||
972 | LOCAL_ASSIGN; | ||
973 | ), | ||
974 | |||
975 | TP_printk( | ||
976 | LOCAL_PR_FMT, LOCAL_PR_ARG | ||
977 | ) | ||
978 | ); | ||
979 | |||
936 | /* | 980 | /* |
937 | * Tracing for API calls that drivers call. | 981 | * Tracing for API calls that drivers call. |
938 | */ | 982 | */ |
@@ -1170,6 +1214,42 @@ TRACE_EVENT(api_chswitch_done, | |||
1170 | ) | 1214 | ) |
1171 | ); | 1215 | ); |
1172 | 1216 | ||
1217 | TRACE_EVENT(api_ready_on_channel, | ||
1218 | TP_PROTO(struct ieee80211_local *local), | ||
1219 | |||
1220 | TP_ARGS(local), | ||
1221 | |||
1222 | TP_STRUCT__entry( | ||
1223 | LOCAL_ENTRY | ||
1224 | ), | ||
1225 | |||
1226 | TP_fast_assign( | ||
1227 | LOCAL_ASSIGN; | ||
1228 | ), | ||
1229 | |||
1230 | TP_printk( | ||
1231 | LOCAL_PR_FMT, LOCAL_PR_ARG | ||
1232 | ) | ||
1233 | ); | ||
1234 | |||
1235 | TRACE_EVENT(api_remain_on_channel_expired, | ||
1236 | TP_PROTO(struct ieee80211_local *local), | ||
1237 | |||
1238 | TP_ARGS(local), | ||
1239 | |||
1240 | TP_STRUCT__entry( | ||
1241 | LOCAL_ENTRY | ||
1242 | ), | ||
1243 | |||
1244 | TP_fast_assign( | ||
1245 | LOCAL_ASSIGN; | ||
1246 | ), | ||
1247 | |||
1248 | TP_printk( | ||
1249 | LOCAL_PR_FMT, LOCAL_PR_ARG | ||
1250 | ) | ||
1251 | ); | ||
1252 | |||
1173 | /* | 1253 | /* |
1174 | * Tracing for internal functions | 1254 | * Tracing for internal functions |
1175 | * (which may also be called in response to driver calls) | 1255 | * (which may also be called in response to driver calls) |