Skip to content

Commit

Permalink
Allow unicast TX to overlap with MC (ARMmbed#2298)
Browse files Browse the repository at this point in the history
Allow unicast TX overlap with the next MC slot to improve data rate.

Co-authored-by: Jarkko Paso <jarkko.paso@arm.com>
  • Loading branch information
Arto Kinnunen and Jarkko Paso authored Feb 6, 2020
1 parent d40b1c7 commit 5b30559
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/Service_Libs/fhss/fhss_ws.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,10 @@ static bool fhss_ws_check_tx_allowed(fhss_structure_t *fhss_structure)

static bool fhss_ws_check_tx_time(fhss_structure_t *fhss_structure, uint16_t tx_length, uint8_t phy_header_length, uint8_t phy_tail_length)
{
/*
* Check if there is enough time for transmitting before the next multicast slot.
*/
#ifdef FHSS_WS_PROTECT_MC_SLOTS
if (!fhss_structure->ws->fhss_configuration.fhss_broadcast_interval || !fhss_structure->ws->fhss_configuration.fhss_bc_dwell_interval) {
return true;
}
Expand All @@ -615,6 +619,13 @@ static bool fhss_ws_check_tx_time(fhss_structure_t *fhss_structure, uint16_t tx_
return false;
}
return true;
#else
(void) fhss_structure;
(void) tx_length;
(void) phy_header_length;
(void) phy_tail_length;
return true;
#endif
}

static bool fhss_ws_check_tx_conditions_callback(const fhss_api_t *api, bool is_broadcast_addr, uint8_t handle, int frame_type, uint16_t frame_length, uint8_t phy_header_length, uint8_t phy_tail_length)
Expand Down

0 comments on commit 5b30559

Please sign in to comment.