aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/trace.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-10-20 06:20:45 -0400
committerJohannes Berg <johannes.berg@intel.com>2014-10-20 10:39:23 -0400
commit988568669d171774b96e59fe35ef575df7f8cffd (patch)
tree177772b25c1cc75c298d8cf1a4245dcffe38d691 /net/wireless/trace.h
parent89c771e5a62b856f4705f189892c489190edaec1 (diff)
cfg80211: Specify frame and reason code for NL80211_CMD_DEL_STATION
The optional NL80211_ATTR_MGMT_SUBTYPE and NL80211_ATTR_REASON_CODE attributes can now be included in NL80211_CMD_DEL_STATION to indicate to the driver which frame (Deauthentication/Disassociation) and reason code in that frame should be used to indicate removal to the specific station. This is used by drivers that implement AP SME and generate those frames internally. 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.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/net/wireless/trace.h b/net/wireless/trace.h
index b1339400631d..cdb2c2ef1ae1 100644
--- a/net/wireless/trace.h
+++ b/net/wireless/trace.h
@@ -688,14 +688,20 @@ DECLARE_EVENT_CLASS(station_del,
688 WIPHY_ENTRY 688 WIPHY_ENTRY
689 NETDEV_ENTRY 689 NETDEV_ENTRY
690 MAC_ENTRY(sta_mac) 690 MAC_ENTRY(sta_mac)
691 __field(u8, subtype)
692 __field(u16, reason_code)
691 ), 693 ),
692 TP_fast_assign( 694 TP_fast_assign(
693 WIPHY_ASSIGN; 695 WIPHY_ASSIGN;
694 NETDEV_ASSIGN; 696 NETDEV_ASSIGN;
695 MAC_ASSIGN(sta_mac, params->mac); 697 MAC_ASSIGN(sta_mac, params->mac);
698 __entry->subtype = params->subtype;
699 __entry->reason_code = params->reason_code;
696 ), 700 ),
697 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT, 701 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT
698 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac)) 702 ", subtype: %u, reason_code: %u",
703 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac),
704 __entry->subtype, __entry->reason_code)
699); 705);
700 706
701DEFINE_EVENT(station_del, rdev_del_station, 707DEFINE_EVENT(station_del, rdev_del_station,