diff --git a/include/nuttx/wireless/ieee802154/ieee802154_radio.h b/include/nuttx/wireless/ieee802154/ieee802154_radio.h index d755118812..eb6f912336 100644 --- a/include/nuttx/wireless/ieee802154/ieee802154_radio.h +++ b/include/nuttx/wireless/ieee802154/ieee802154_radio.h @@ -84,6 +84,7 @@ struct ieee802154_txdesc_s enum ieee802154_frametype_e frametype; + bool ackreq; /* Are we requesting an ACK? */ bool framepending; /* Did the ACK have the frame pending bit set */ uint32_t purgetime; /* Time to purge transaction */ uint8_t retrycount; /* Number of remaining retries. Set to macMaxFrameRetries diff --git a/wireless/ieee802154/mac802154_data.c b/wireless/ieee802154/mac802154_data.c index 04bac7b7b0..86e9e1ea3f 100644 --- a/wireless/ieee802154/mac802154_data.c +++ b/wireless/ieee802154/mac802154_data.c @@ -258,6 +258,7 @@ int mac802154_req_data(MACHANDLE mac, txdesc->conf->handle = meta->handle; txdesc->frame = frame; txdesc->frametype = IEEE802154_FRAME_DATA; + txdesc->ackreq = meta->flags.ackreq; /* If the TxOptions parameter specifies that a GTS transmission is required, * the MAC sublayer will determine whether it has a valid GTS as described