[riot-notifications] [RIOT-OS/RIOT] net/ieee802154/submac: calculate aUnitbackoffPeriod at runtime (#16475)

benpicco notifications at github.com
Mon May 17 10:50:37 CEST 2021


@benpicco commented on this pull request.



> @@ -56,7 +83,7 @@ static int _perform_csma_ca(ieee802154_submac_t *submac)
         ieee802154_radio_request_set_trx_state(dev, IEEE802154_TRX_STATE_TX_ON);
         /* delay for an adequate random backoff period */
         uint32_t bp = (random_uint32() & submac->backoff_mask) *
-                      CSMA_SENDER_BACKOFF_PERIOD_UNIT_MS;
+                      ieee802154_get_unit_backoff_period(submac);

I think you also want to replace the `ACK_TIMEOUT_US` constant now :wink:  

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16475#pullrequestreview-660720482
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210517/fd674533/attachment.htm>


More information about the notifications mailing list