We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bba1105 commit ae91f87Copy full SHA for ae91f87
source/MAC/IEEE802_15_4/mac_pd_sap.c
@@ -355,6 +355,10 @@ static void mac_sap_no_ack_cb(protocol_interface_rf_mac_setup_s *rf_ptr)
355
rf_ptr->mac_cca_retry = 0;
356
rf_ptr->mac_tx_retry++; //Update retry counter
357
mac_csma_param_init(rf_ptr);
358
+ // Increase current backoff exponent when retry count grows
359
+ for (int retry_index = rf_ptr->mac_tx_retry; retry_index > 0; retry_index--) {
360
+ mac_csma_BE_update(rf_ptr);
361
+ }
362
rf_ptr->mac_tx_status.retry++;
363
/*Send retry using random interval*/
364
if (mcps_pd_data_rebuild(rf_ptr, rf_ptr->active_pd_data_request)) {
0 commit comments