Skip to content

Commit caafff0

Browse files
author
Jarkko Paso
committed
FHSS: Check TX slot for unicast frames
1 parent 7406149 commit caafff0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/Service_Libs/fhss/fhss_ws.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,11 @@ static bool fhss_check_bad_channel(fhss_structure_t *fhss_structure, uint8_t han
306306
return true;
307307
}
308308

309+
static bool fhss_ws_check_tx_allowed(fhss_structure_t *fhss_structure)
310+
{
311+
return true;
312+
}
313+
309314
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)
310315
{
311316
(void) handle;
@@ -332,6 +337,10 @@ static bool fhss_ws_check_tx_conditions_callback(const fhss_api_t *api, bool is_
332337
if (!is_broadcast_addr && (fhss_structure->ws->is_on_bc_channel == true)) {
333338
return false;
334339
}
340+
// Check TX/RX slot for unicast frames
341+
if (!is_broadcast_addr && !fhss_ws_check_tx_allowed(fhss_structure)) {
342+
return false;
343+
}
335344
return true;
336345
}
337346

0 commit comments

Comments
 (0)