mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
at86rf215: respect ack request option
This commit is contained in:
parent
06de22637c
commit
087931c5f2
@ -91,8 +91,10 @@ void at86rf215_reset_and_cfg(at86rf215_t *dev)
|
||||
at86rf215_reset(dev);
|
||||
|
||||
/* default to requesting ACKs, just like at86rf2xx */
|
||||
const netopt_enable_t enable = NETOPT_ENABLE;
|
||||
netdev_ieee802154_set(&dev->netdev, NETOPT_ACK_REQ, &enable, sizeof(enable));
|
||||
static const netopt_enable_t ack_req =
|
||||
IS_ACTIVE(CONFIG_IEEE802154_DEFAULT_ACK_REQ) ? NETOPT_ENABLE : NETOPT_DISABLE;
|
||||
netdev_ieee802154_set(&dev->netdev, NETOPT_ACK_REQ,
|
||||
&ack_req, sizeof(ack_req));
|
||||
|
||||
/* enable RX start IRQs */
|
||||
at86rf215_reg_or(dev, dev->BBC->RG_IRQM, BB_IRQ_RXAM);
|
||||
|
Loading…
Reference in New Issue
Block a user