summaryrefslogtreecommitdiffstats
path: root/net/ieee802154/trace.h
diff options
context:
space:
mode:
authorVarka Bhadram <varkabhadram@gmail.com>2015-05-27 05:40:54 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-05-27 13:29:25 +0200
commit0f999b09f5c1b135e840501840dbcd01fad66f79 (patch)
tree1f632df3dee5995e7a0f4b39b7dc4739b54f5702 /net/ieee802154/trace.h
parentnl802154: fix cca mode wpan phy flag (diff)
downloadlinux-0f999b09f5c1b135e840501840dbcd01fad66f79.tar.xz
linux-0f999b09f5c1b135e840501840dbcd01fad66f79.zip
ieee802154: add set transmit power support
This patch adds transmission power setting support for IEEE-802.15.4 devices via nl802154. Signed-off-by: Varka Bhadram <varkab@cdac.in> Acked-by: Alexander Aring <alex.aring@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 5ac25eb6ed17..1f1cecc420d7 100644
--- a/net/ieee802154/trace.h
+++ b/net/ieee802154/trace.h
@@ -93,6 +93,21 @@ TRACE_EVENT(802154_rdev_set_channel,
__entry->page, __entry->channel)
);
+TRACE_EVENT(802154_rdev_set_tx_power,
+ TP_PROTO(struct wpan_phy *wpan_phy, s32 power),
+ TP_ARGS(wpan_phy, power),
+ TP_STRUCT__entry(
+ WPAN_PHY_ENTRY
+ __field(s32, power)
+ ),
+ TP_fast_assign(
+ WPAN_PHY_ASSIGN;
+ __entry->power = power;
+ ),
+ TP_printk(WPAN_PHY_PR_FMT ", power: %d", WPAN_PHY_PR_ARG,
+ __entry->power)
+);
+
TRACE_EVENT(802154_rdev_set_cca_mode,
TP_PROTO(struct wpan_phy *wpan_phy, const struct wpan_phy_cca *cca),
TP_ARGS(wpan_phy, cca),