Merged in antmerlino/nuttx/mac_txdesc_ackreq_fix (pull request #986)
mac802154: Fixes issue where the txdesc's ackreq flag was not being set, despite the frame containing a Frame Control field with ACKREQ bit set. Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
parent
a8e1620f3c
commit
6f4c9678af
2 changed files with 4 additions and 0 deletions
|
|
@ -342,6 +342,7 @@ void mac802154_createdatareq(FAR struct ieee802154_privmac_s *priv,
|
|||
|
||||
txdesc->frame = iob;
|
||||
txdesc->frametype = IEEE802154_FRAME_COMMAND;
|
||||
txdesc->ackreq = true;
|
||||
|
||||
/* Save a copy of the destination addressing information into the tx
|
||||
* descriptor. We only do this for commands to help with handling their
|
||||
|
|
@ -1632,6 +1633,7 @@ static void mac802154_rxdatareq(FAR struct ieee802154_privmac_s *priv,
|
|||
|
||||
txdesc->frame = iob;
|
||||
txdesc->frametype = IEEE802154_FRAME_DATA;
|
||||
txdesc->ackreq = false;
|
||||
|
||||
mac802154_unlock(priv)
|
||||
|
||||
|
|
|
|||
|
|
@ -234,6 +234,7 @@ int mac802154_req_associate(MACHANDLE mac,
|
|||
|
||||
txdesc->frame = iob;
|
||||
txdesc->frametype = IEEE802154_FRAME_COMMAND;
|
||||
txdesc->ackreq = true;
|
||||
|
||||
/* Save a copy of the destination addressing infromation into the tx
|
||||
* descriptor. We only do this for commands to help with handling their
|
||||
|
|
@ -422,6 +423,7 @@ int mac802154_resp_associate(MACHANDLE mac,
|
|||
|
||||
txdesc->frame = iob;
|
||||
txdesc->frametype = IEEE802154_FRAME_COMMAND;
|
||||
txdesc->ackreq = true;
|
||||
|
||||
txdesc->destaddr.mode = IEEE802154_ADDRMODE_EXTENDED;
|
||||
IEEE802154_PANIDCOPY(txdesc->destaddr.panid, priv->addr.panid);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue