Skip to content

Commit e48aa79

Browse files
author
Jarkko Paso
committed
WS: Use Tack in Ack wait time
1 parent e18055a commit e48aa79

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

source/6LoWPAN/ws/ws_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ int8_t ws_common_regulatory_domain_config(protocol_interface_info_entry_t *cur)
182182
set_request.value_size = sizeof(phy_rf_channel_configuration_s);
183183
cur->mac_api->mlme_req(cur->mac_api, MLME_SET, &set_request);
184184
// Set Ack wait duration
185-
uint16_t ack_wait_symbols = WS_ACK_WAIT_SYMBOLS;
185+
uint16_t ack_wait_symbols = WS_ACK_WAIT_SYMBOLS + (WS_TACK_MAX_MS*(rf_configs.datarate/1000));
186186
set_request.attr = macAckWaitDuration;
187187
set_request.value_pointer = &ack_wait_symbols;
188188
set_request.value_size = sizeof(ack_wait_symbols);

source/6LoWPAN/ws/ws_common_defines.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ typedef struct ws_bs_ie {
220220
*/
221221
#define WS_ACK_WAIT_SYMBOLS 800
222222

223+
/*
224+
* Tack max time in milliseconds.
225+
*/
226+
#define WS_TACK_MAX_MS 5
227+
223228
/* Default FHSS timing information
224229
*
225230
*/

0 commit comments

Comments
 (0)