summaryrefslogtreecommitdiffstats
path: root/net/ieee802154/rdev-ops.h
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-12 03:36:59 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-11-12 05:10:40 +0100
commit656a999e8701c1e3d17040f051d3a080ec6c710c (patch)
treea20af2f92a05c2ab17410be17c3b563fd6f72afb /net/ieee802154/rdev-ops.h
parent9830c62a0b3d57d9d00880989cfe987f581bc03f (diff)
downloadlinux-656a999e8701c1e3d17040f051d3a080ec6c710c.tar.bz2
ieee820154: add backoff exponent setting support
This patch adds support for setting backoff exponents via nl802154 framework. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/rdev-ops.h')
-rw-r--r--net/ieee802154/rdev-ops.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/ieee802154/rdev-ops.h b/net/ieee802154/rdev-ops.h
index 16b0de06c3af..dbccfa9383fd 100644
--- a/net/ieee802154/rdev-ops.h
+++ b/net/ieee802154/rdev-ops.h
@@ -41,4 +41,13 @@ rdev_set_short_addr(struct cfg802154_registered_device *rdev,
return rdev->ops->set_short_addr(&rdev->wpan_phy, wpan_dev, short_addr);
}
+static inline int
+rdev_set_backoff_exponent(struct cfg802154_registered_device *rdev,
+ struct wpan_dev *wpan_dev, const u8 min_be,
+ const u8 max_be)
+{
+ return rdev->ops->set_backoff_exponent(&rdev->wpan_phy, wpan_dev,
+ min_be, max_be);
+}
+
#endif /* __CFG802154_RDEV_OPS */