diff options
author | Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de> | 2013-07-08 10:55:49 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-07-16 02:58:01 -0400 |
commit | dcd6eac1f3b5fa1df11dfa99da0cf75b76cfef97 (patch) | |
tree | 6bd0f6452332418b8c17e9d4c0358fdb7d9678ef /net/wireless/trace.h | |
parent | be29b99a9b51b0338eea3c66a58de53bbd01de24 (diff) |
nl80211: add scan width to bss and scan request structs
To allow scanning and working with 5 MHz and 10 MHz BSS, extend the
inform bss commands and add wrappers to take 5 and 10 MHz bss into
account.
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'net/wireless/trace.h')
-rw-r--r-- | net/wireless/trace.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/net/wireless/trace.h b/net/wireless/trace.h index e1534baf2ebb..09af6eb426a8 100644 --- a/net/wireless/trace.h +++ b/net/wireless/trace.h | |||
@@ -2391,26 +2391,30 @@ TRACE_EVENT(cfg80211_get_bss, | |||
2391 | __entry->capa_mask, __entry->capa_val) | 2391 | __entry->capa_mask, __entry->capa_val) |
2392 | ); | 2392 | ); |
2393 | 2393 | ||
2394 | TRACE_EVENT(cfg80211_inform_bss_frame, | 2394 | TRACE_EVENT(cfg80211_inform_bss_width_frame, |
2395 | TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel, | 2395 | TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel, |
2396 | enum nl80211_bss_scan_width scan_width, | ||
2396 | struct ieee80211_mgmt *mgmt, size_t len, | 2397 | struct ieee80211_mgmt *mgmt, size_t len, |
2397 | s32 signal), | 2398 | s32 signal), |
2398 | TP_ARGS(wiphy, channel, mgmt, len, signal), | 2399 | TP_ARGS(wiphy, channel, scan_width, mgmt, len, signal), |
2399 | TP_STRUCT__entry( | 2400 | TP_STRUCT__entry( |
2400 | WIPHY_ENTRY | 2401 | WIPHY_ENTRY |
2401 | CHAN_ENTRY | 2402 | CHAN_ENTRY |
2403 | __field(enum nl80211_bss_scan_width, scan_width) | ||
2402 | __dynamic_array(u8, mgmt, len) | 2404 | __dynamic_array(u8, mgmt, len) |
2403 | __field(s32, signal) | 2405 | __field(s32, signal) |
2404 | ), | 2406 | ), |
2405 | TP_fast_assign( | 2407 | TP_fast_assign( |
2406 | WIPHY_ASSIGN; | 2408 | WIPHY_ASSIGN; |
2407 | CHAN_ASSIGN(channel); | 2409 | CHAN_ASSIGN(channel); |
2410 | __entry->scan_width = scan_width; | ||
2408 | if (mgmt) | 2411 | if (mgmt) |
2409 | memcpy(__get_dynamic_array(mgmt), mgmt, len); | 2412 | memcpy(__get_dynamic_array(mgmt), mgmt, len); |
2410 | __entry->signal = signal; | 2413 | __entry->signal = signal; |
2411 | ), | 2414 | ), |
2412 | TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT "signal: %d", | 2415 | TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT "(scan_width: %d) signal: %d", |
2413 | WIPHY_PR_ARG, CHAN_PR_ARG, __entry->signal) | 2416 | WIPHY_PR_ARG, CHAN_PR_ARG, __entry->scan_width, |
2417 | __entry->signal) | ||
2414 | ); | 2418 | ); |
2415 | 2419 | ||
2416 | DECLARE_EVENT_CLASS(cfg80211_bss_evt, | 2420 | DECLARE_EVENT_CLASS(cfg80211_bss_evt, |