Skip to content

Commit 5b30559

Browse files
Arto KinnunenJarkko Paso
andauthored
Allow unicast TX to overlap with MC (#2298)
Allow unicast TX overlap with the next MC slot to improve data rate. Co-authored-by: Jarkko Paso <[email protected]>
1 parent d40b1c7 commit 5b30559

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source/Service_Libs/fhss/fhss_ws.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,10 @@ static bool fhss_ws_check_tx_allowed(fhss_structure_t *fhss_structure)
606606

607607
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)
608608
{
609+
/*
610+
* Check if there is enough time for transmitting before the next multicast slot.
611+
*/
612+
#ifdef FHSS_WS_PROTECT_MC_SLOTS
609613
if (!fhss_structure->ws->fhss_configuration.fhss_broadcast_interval || !fhss_structure->ws->fhss_configuration.fhss_bc_dwell_interval) {
610614
return true;
611615
}
@@ -615,6 +619,13 @@ static bool fhss_ws_check_tx_time(fhss_structure_t *fhss_structure, uint16_t tx_
615619
return false;
616620
}
617621
return true;
622+
#else
623+
(void) fhss_structure;
624+
(void) tx_length;
625+
(void) phy_header_length;
626+
(void) phy_tail_length;
627+
return true;
628+
#endif
618629
}
619630

620631
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)

0 commit comments

Comments
 (0)