summaryrefslogtreecommitdiffstats
path: root/net/ieee802154/rdev-ops.h
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-12 03:37:03 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-11-12 05:10:42 +0100
commit17a3a46bfbf1c2b944812a81b11ffe255a55e9ca (patch)
treea229bdacee6bfebd328a00885e30450976481b7e /net/ieee802154/rdev-ops.h
parent17561bfe6fe2cde8699b6c98d9078dfa3e36911d (diff)
downloadop-kernel-dev-17a3a46bfbf1c2b944812a81b11ffe255a55e9ca.zip
op-kernel-dev-17a3a46bfbf1c2b944812a81b11ffe255a55e9ca.tar.gz
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 263095c..f9171aa 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 */
OpenPOWER on IntegriCloud