Skip to content

Commit 42c154d

Browse files
author
Jarkko Paso
authored
Merge pull request #2054 from ARMmbed/IOTTHD-3374
MAC: Use minimum CSMA for Asynch
2 parents 75cce02 + aab7191 commit 42c154d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/MAC/IEEE802_15_4/mac_pd_sap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ void mac_csma_backoff_start(protocol_interface_rf_mac_setup_s *rf_mac_setup)
8383

8484
uint32_t mac_csma_backoff_get(protocol_interface_rf_mac_setup_s *rf_mac_setup)
8585
{
86+
// Use minimum allowed CSMA-CA for asynch frames
87+
if (rf_mac_setup->active_pd_data_request->asynch_request) {
88+
return MIN_FHSS_CSMA_PERIOD_US;
89+
}
8690
uint8_t backoff = mac_csma_random_backoff_get(rf_mac_setup);
8791
uint32_t backoff_in_us;
8892
//Multiple aUnitBackoffPeriod symbol time

0 commit comments

Comments
 (0)