mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
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>
This commit is contained in:
parent
9830c62a0b
commit
656a999e87
4 changed files with 64 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue