From eaf4c05f27fd790b31f92b7a58509df9ee2cc190 Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Tue, 18 Jul 2017 14:01:30 -0400 Subject: [PATCH] ieee802154: Sets txdesc retrycount to the maxretries MAC attribute when allocated --- wireless/ieee802154/mac802154.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wireless/ieee802154/mac802154.c b/wireless/ieee802154/mac802154.c index 6c93de3f15c..7bc0d6c4c97 100644 --- a/wireless/ieee802154/mac802154.c +++ b/wireless/ieee802154/mac802154.c @@ -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 = ¬if->u.dataconf; return OK;