mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
netdev/ieee802154_submac: enable ACK_REQ
One of the features of the sub-MAC is to allow for ACK-handling in software. So enable the use of ACKs by default, just like the netdev drivers do that support this feature in hardware.
This commit is contained in:
parent
08621f67b4
commit
bb546835a1
@ -279,6 +279,7 @@ static int _init(netdev_t *netdev)
|
||||
|
||||
uint16_t chan = CONFIG_IEEE802154_DEFAULT_CHANNEL;
|
||||
int16_t tx_power = CONFIG_IEEE802154_DEFAULT_TXPOWER;
|
||||
netopt_enable_t enable = NETOPT_ENABLE;
|
||||
|
||||
/* Initialise netdev_ieee802154_t struct */
|
||||
netdev_ieee802154_set(netdev_ieee802154, NETOPT_CHANNEL,
|
||||
@ -287,6 +288,8 @@ static int _init(netdev_t *netdev)
|
||||
&submac->short_addr, sizeof(submac->short_addr));
|
||||
netdev_ieee802154_set(netdev_ieee802154, NETOPT_ADDRESS_LONG,
|
||||
&submac->ext_addr, sizeof(submac->ext_addr));
|
||||
netdev_ieee802154_set(netdev_ieee802154, NETOPT_ACK_REQ,
|
||||
&enable, sizeof(enable));
|
||||
|
||||
netdev_submac->dev.txpower = tx_power;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user