Skip to content

Commit e54231b

Browse files
author
Jarkko Paso
authored
Do not check buffer age when virtual RF driver used (ARMmbed#2662)
1 parent cc8c7bd commit e54231b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/MAC/IEEE802_15_4/mac_mcps_sap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,10 @@ static void mac_mcps_asynch_finish(protocol_interface_rf_mac_setup_s *rf_mac_set
11061106

11071107
static bool mcps_sap_check_buffer_timeout(protocol_interface_rf_mac_setup_s *rf_mac_setup, mac_pre_build_frame_t *buffer)
11081108
{
1109+
// Timestamp is not implemented by virtual RF driver. Do not check buffer age.
1110+
if (rf_mac_setup->dev_driver->phy_driver->arm_net_virtual_tx_cb) {
1111+
return false;
1112+
}
11091113
// Convert from 1us slots to seconds
11101114
uint32_t buffer_age_s = (mac_mcps_sap_get_phy_timestamp(rf_mac_setup) - buffer->request_start_time_us) / 1000000;
11111115
// Do not timeout broadcast frames. Broadcast interval could be very long.

0 commit comments

Comments
 (0)