mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ieee802154: add ack request default handling
This patch introduce a new mib entry which isn't part of 802.15.4 but useful as default behaviour to set the ack request bit or not if we don't know if the ack request bit should set. This is currently used for stacks like IEEE 802.15.4 6LoWPAN. Reviewed-by: Stefan Schmidt <[email protected]> Signed-off-by: Alexander Aring <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
fc0719e6a1
commit
c91208d819
7 changed files with 86 additions and 1 deletions
|
|
@ -256,6 +256,16 @@ ieee802154_set_lbt_mode(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
ieee802154_set_ackreq_default(struct wpan_phy *wpan_phy,
|
||||
struct wpan_dev *wpan_dev, bool ackreq)
|
||||
{
|
||||
ASSERT_RTNL();
|
||||
|
||||
wpan_dev->ackreq = ackreq;
|
||||
return 0;
|
||||
}
|
||||
|
||||
const struct cfg802154_ops mac802154_config_ops = {
|
||||
.add_virtual_intf_deprecated = ieee802154_add_iface_deprecated,
|
||||
.del_virtual_intf_deprecated = ieee802154_del_iface_deprecated,
|
||||
|
|
@ -273,4 +283,5 @@ const struct cfg802154_ops mac802154_config_ops = {
|
|||
.set_max_csma_backoffs = ieee802154_set_max_csma_backoffs,
|
||||
.set_max_frame_retries = ieee802154_set_max_frame_retries,
|
||||
.set_lbt_mode = ieee802154_set_lbt_mode,
|
||||
.set_ackreq_default = ieee802154_set_ackreq_default,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue