ieee802154: Sets txdesc retrycount to the maxretries MAC attribute when allocated

This commit is contained in:
Anthony Merlino 2017-07-18 14:01:30 -04:00
parent 222fe50d3a
commit eaf4c05f27

View File

@ -229,9 +229,8 @@ int mac802154_txdesc_alloc(FAR struct ieee802154_privmac_s *priv,
return -EINTR;
}
/* Set the purge time to zero */
(*txdesc)->purgetime = 0;
(*txdesc)->retrycount = priv->maxretries;
(*txdesc)->conf = &notif->u.dataconf;
return OK;