summaryrefslogtreecommitdiff
path: root/net/ieee802154/trace.h
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-05-27 13:42:10 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-05-27 19:29:42 +0200
commitb69644c1c72e179738dd5c7e52e99d8550189472 (patch)
treed211eea2d8c51db2e8cac0c2aa00bd4b2b9d243c /net/ieee802154/trace.h
parente4390592a4fc3ee10a8bc4742197fdbac3935f74 (diff)
downloadlwn-b69644c1c72e179738dd5c7e52e99d8550189472.tar.gz
lwn-b69644c1c72e179738dd5c7e52e99d8550189472.zip
nl802154: add support to set cca ed level
This patch adds support for setting the current cca ed level value over nl802154. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Reviewed-by: Varka Bhadram <varkabhadram@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/trace.h')
-rw-r--r--net/ieee802154/trace.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/ieee802154/trace.h b/net/ieee802154/trace.h
index ac790bb1b4fe..73eb7605c1eb 100644
--- a/net/ieee802154/trace.h
+++ b/net/ieee802154/trace.h
@@ -123,6 +123,21 @@ TRACE_EVENT(802154_rdev_set_cca_mode,
WPAN_CCA_PR_ARG)
);
+TRACE_EVENT(802154_rdev_set_cca_ed_level,
+ TP_PROTO(struct wpan_phy *wpan_phy, s32 ed_level),
+ TP_ARGS(wpan_phy, ed_level),
+ TP_STRUCT__entry(
+ WPAN_PHY_ENTRY
+ __field(s32, ed_level)
+ ),
+ TP_fast_assign(
+ WPAN_PHY_ASSIGN;
+ __entry->ed_level = ed_level;
+ ),
+ TP_printk(WPAN_PHY_PR_FMT ", ed_level: %d", WPAN_PHY_PR_ARG,
+ __entry->ed_level)
+);
+
DECLARE_EVENT_CLASS(802154_le16_template,
TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
__le16 le16arg),