mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
drivers/netdev_ieee802154_submac: netdev_ieee802154_submac_soft_ack
This commit is contained in:
parent
4e0f52fc6e
commit
3dd00dbbfd
1
drivers/netdev_ieee802154_submac/Makefile.include
Normal file
1
drivers/netdev_ieee802154_submac/Makefile.include
Normal file
@ -0,0 +1 @@
|
|||||||
|
PSEUDOMODULES += netdev_ieee802154_submac_soft_ack
|
||||||
@ -296,7 +296,7 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)
|
|||||||
|
|
||||||
netdev_rx_info->lqi = rx_info.lqi;
|
netdev_rx_info->lqi = rx_info.lqi;
|
||||||
}
|
}
|
||||||
#if !IS_ACTIVE(CONFIG_IEEE802154_AUTO_ACK_DISABLE)
|
#if IS_USED(MODULE_NETDEV_IEEE802154_SUBMAC_SOFT_ACK)
|
||||||
const uint8_t *mhr = buf;
|
const uint8_t *mhr = buf;
|
||||||
if ((mhr[0] & IEEE802154_FCF_TYPE_MASK) == IEEE802154_FCF_TYPE_DATA &&
|
if ((mhr[0] & IEEE802154_FCF_TYPE_MASK) == IEEE802154_FCF_TYPE_DATA &&
|
||||||
(mhr[0] & IEEE802154_FCF_ACK_REQ)) {
|
(mhr[0] & IEEE802154_FCF_ACK_REQ)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user