diff options
author | Arik Nemtsov <arik@wizery.com> | 2014-11-19 05:54:26 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-11-19 12:45:12 -0500 |
commit | 1057d35ede5dbf7ed7842357564fb42c9b54ba50 (patch) | |
tree | ffcef6d5d942a74a1f3f71fc5aab6d910398240d /net/wireless/trace.h | |
parent | c2733905692589cc73928ffd65d26107536e80fe (diff) |
cfg80211: introduce TDLS channel switch commands
Introduce commands to initiate and cancel TDLS channel-switching. Once
TDLS channel-switching is started, the lower level driver is responsible
for continually initiating channel-switch operations and returning to
the base (AP) channel to listen for beacons from time to time.
Upon cancellation of the channel-switch all communication between the
relevant TDLS peers will continue on the base channel.
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/trace.h')
-rw-r--r-- | net/wireless/trace.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/net/wireless/trace.h b/net/wireless/trace.h index 6e25370d3ce7..ad38910f7036 100644 --- a/net/wireless/trace.h +++ b/net/wireless/trace.h | |||
@@ -2032,6 +2032,48 @@ TRACE_EVENT(rdev_del_tx_ts, | |||
2032 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->tsid) | 2032 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->tsid) |
2033 | ); | 2033 | ); |
2034 | 2034 | ||
2035 | TRACE_EVENT(rdev_tdls_channel_switch, | ||
2036 | TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, | ||
2037 | const u8 *addr, u8 oper_class, | ||
2038 | struct cfg80211_chan_def *chandef), | ||
2039 | TP_ARGS(wiphy, netdev, addr, oper_class, chandef), | ||
2040 | TP_STRUCT__entry( | ||
2041 | WIPHY_ENTRY | ||
2042 | NETDEV_ENTRY | ||
2043 | MAC_ENTRY(addr) | ||
2044 | __field(u8, oper_class) | ||
2045 | CHAN_DEF_ENTRY | ||
2046 | ), | ||
2047 | TP_fast_assign( | ||
2048 | WIPHY_ASSIGN; | ||
2049 | NETDEV_ASSIGN; | ||
2050 | MAC_ASSIGN(addr, addr); | ||
2051 | CHAN_DEF_ASSIGN(chandef); | ||
2052 | ), | ||
2053 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT | ||
2054 | " oper class %d, " CHAN_DEF_PR_FMT, | ||
2055 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(addr), | ||
2056 | __entry->oper_class, CHAN_DEF_PR_ARG) | ||
2057 | ); | ||
2058 | |||
2059 | TRACE_EVENT(rdev_tdls_cancel_channel_switch, | ||
2060 | TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, | ||
2061 | const u8 *addr), | ||
2062 | TP_ARGS(wiphy, netdev, addr), | ||
2063 | TP_STRUCT__entry( | ||
2064 | WIPHY_ENTRY | ||
2065 | NETDEV_ENTRY | ||
2066 | MAC_ENTRY(addr) | ||
2067 | ), | ||
2068 | TP_fast_assign( | ||
2069 | WIPHY_ASSIGN; | ||
2070 | NETDEV_ASSIGN; | ||
2071 | MAC_ASSIGN(addr, addr); | ||
2072 | ), | ||
2073 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT, | ||
2074 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(addr)) | ||
2075 | ); | ||
2076 | |||
2035 | /************************************************************* | 2077 | /************************************************************* |
2036 | * cfg80211 exported functions traces * | 2078 | * cfg80211 exported functions traces * |
2037 | *************************************************************/ | 2079 | *************************************************************/ |