summaryrefslogtreecommitdiff
path: root/net/ieee802154/rdev-ops.h
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-12 05:37:03 +0300
committerMarcel Holtmann <marcel@holtmann.org>2014-11-12 07:10:42 +0300
commit17a3a46bfbf1c2b944812a81b11ffe255a55e9ca (patch)
treea229bdacee6bfebd328a00885e30450976481b7e /net/ieee802154/rdev-ops.h
parent17561bfe6fe2cde8699b6c98d9078dfa3e36911d (diff)
downloadlinux-17a3a46bfbf1c2b944812a81b11ffe255a55e9ca.tar.xz
ieee820154: add max frame retries setting support
This patch add support for setting mac frame retries setting 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 263095c8686c..f9171aaf985e 100644
--- a/net/ieee802154/rdev-ops.h
+++ b/net/ieee802154/rdev-ops.h
@@ -59,4 +59,13 @@ rdev_set_max_csma_backoffs(struct cfg802154_registered_device *rdev,
max_csma_backoffs);
}
+static inline int
+rdev_set_max_frame_retries(struct cfg802154_registered_device *rdev,
+ struct wpan_dev *wpan_dev,
+ const s8 max_frame_retries)
+{
+ return rdev->ops->set_max_frame_retries(&rdev->wpan_phy, wpan_dev,
+ max_frame_retries);
+}
+
#endif /* __CFG802154_RDEV_OPS */