net/netdev_ieee802154_submac: prevent calling ACK TO fired if cancelled

This commit is contained in:
Jose Alamos 2021-10-07 14:37:05 +02:00
parent d7f4d5b0bd
commit cb6e242b65
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

@ -151,6 +151,9 @@ void ieee802154_submac_ack_timer_cancel(ieee802154_submac_t *submac)
submac);
xtimer_remove(&netdev_submac->ack_timer);
/* Prevent a race condition between the RX_DONE event and the ACK timeout */
netdev_submac->isr_flags &= ~NETDEV_SUBMAC_FLAGS_ACK_TIMEOUT;
}
static int _send(netdev_t *netdev, const iolist_t *pkt)