1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

kw41zrf: respect ack request option

This commit is contained in:
Jue 2022-12-14 16:08:29 +01:00
parent 6ff38347b3
commit 4930a81ae4

View File

@ -252,9 +252,10 @@ int kw41zrf_reset(kw41zrf_t *dev)
kw41zrf_set_option(dev, KW41ZRF_OPT_AUTOACK, 1);
kw41zrf_set_option(dev, KW41ZRF_OPT_CSMA, 1);
static const netopt_enable_t enable = NETOPT_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,
&enable, sizeof(enable));
&ack_req, sizeof(ack_req));
kw41zrf_abort_sequence(dev);
kw41zrf_set_sequence(dev, dev->idle_seq);