diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2013-02-27 10:14:27 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-06 10:35:51 -0500 |
commit | 355199e02b831fd4f652c34d6c7673d973da1369 (patch) | |
tree | bd4bfa7f90b431aa87342dd008d6dcc0f7d3e825 /net/wireless/trace.h | |
parent | 723d568aa585028a145c79a744dba2e018815873 (diff) |
cfg80211: Extend support for IEEE 802.11r Fast BSS Transition
Add NL80211_CMD_UPDATE_FT_IES to support update of FT IEs to the WLAN
driver and NL80211_CMD_FT_EVENT to send FT events from the WLAN driver.
This will carry the target AP's MAC address along with the relevant
Information Elements. This event is used to report received FT IEs
(MDIE, FTIE, RSN IE, TIE, RICIE). These changes allow FT to be supported
with drivers that use an internal SME instead of user space option (like
FT implementation in wpa_supplicant with mac80211-based drivers).
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/trace.h')
-rw-r--r-- | net/wireless/trace.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/net/wireless/trace.h b/net/wireless/trace.h index b7a531380e19..ccadef2106ac 100644 --- a/net/wireless/trace.h +++ b/net/wireless/trace.h | |||
@@ -1785,6 +1785,26 @@ TRACE_EVENT(rdev_set_mac_acl, | |||
1785 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->acl_policy) | 1785 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->acl_policy) |
1786 | ); | 1786 | ); |
1787 | 1787 | ||
1788 | TRACE_EVENT(rdev_update_ft_ies, | ||
1789 | TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, | ||
1790 | struct cfg80211_update_ft_ies_params *ftie), | ||
1791 | TP_ARGS(wiphy, netdev, ftie), | ||
1792 | TP_STRUCT__entry( | ||
1793 | WIPHY_ENTRY | ||
1794 | NETDEV_ENTRY | ||
1795 | __field(u16, md) | ||
1796 | __dynamic_array(u8, ie, ftie->ie_len) | ||
1797 | ), | ||
1798 | TP_fast_assign( | ||
1799 | WIPHY_ASSIGN; | ||
1800 | NETDEV_ASSIGN; | ||
1801 | __entry->md = ftie->md; | ||
1802 | memcpy(__get_dynamic_array(ie), ftie->ie, ftie->ie_len); | ||
1803 | ), | ||
1804 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", md: 0x%x", | ||
1805 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->md) | ||
1806 | ); | ||
1807 | |||
1788 | /************************************************************* | 1808 | /************************************************************* |
1789 | * cfg80211 exported functions traces * | 1809 | * cfg80211 exported functions traces * |
1790 | *************************************************************/ | 1810 | *************************************************************/ |
@@ -2413,6 +2433,32 @@ TRACE_EVENT(cfg80211_report_wowlan_wakeup, | |||
2413 | TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) | 2433 | TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) |
2414 | ); | 2434 | ); |
2415 | 2435 | ||
2436 | TRACE_EVENT(cfg80211_ft_event, | ||
2437 | TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, | ||
2438 | struct cfg80211_ft_event_params *ft_event), | ||
2439 | TP_ARGS(wiphy, netdev, ft_event), | ||
2440 | TP_STRUCT__entry( | ||
2441 | WIPHY_ENTRY | ||
2442 | NETDEV_ENTRY | ||
2443 | __dynamic_array(u8, ies, ft_event->ies_len) | ||
2444 | MAC_ENTRY(target_ap) | ||
2445 | __dynamic_array(u8, ric_ies, ft_event->ric_ies_len) | ||
2446 | ), | ||
2447 | TP_fast_assign( | ||
2448 | WIPHY_ASSIGN; | ||
2449 | NETDEV_ASSIGN; | ||
2450 | if (ft_event->ies) | ||
2451 | memcpy(__get_dynamic_array(ies), ft_event->ies, | ||
2452 | ft_event->ies_len); | ||
2453 | MAC_ASSIGN(target_ap, ft_event->target_ap); | ||
2454 | if (ft_event->ric_ies) | ||
2455 | memcpy(__get_dynamic_array(ric_ies), ft_event->ric_ies, | ||
2456 | ft_event->ric_ies_len); | ||
2457 | ), | ||
2458 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", target_ap: " MAC_PR_FMT, | ||
2459 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(target_ap)) | ||
2460 | ); | ||
2461 | |||
2416 | #endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */ | 2462 | #endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */ |
2417 | 2463 | ||
2418 | #undef TRACE_INCLUDE_PATH | 2464 | #undef TRACE_INCLUDE_PATH |