From f4702af0a1423062a2692addcc0b7f3ac9b06277 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Thu, 1 Aug 2024 15:46:19 +0200 Subject: [PATCH] nimble/ll: Use retransmissions for BIG Create Controller now uses RTN parameter to include retransmissions in BIG event. This applies only to IRC for now, pretransmissions are not included. --- nimble/controller/src/ble_ll_iso_big.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nimble/controller/src/ble_ll_iso_big.c b/nimble/controller/src/ble_ll_iso_big.c index e41f3f94c8..0645ed44ef 100644 --- a/nimble/controller/src/ble_ll_iso_big.c +++ b/nimble/controller/src/ble_ll_iso_big.c @@ -1270,9 +1270,12 @@ ble_ll_iso_big_hci_create(const uint8_t *cmdbuf, uint8_t len) bp.encrypted = cmd->encryption; memcpy(bp.broadcast_code, cmd->broadcast_code, 16); - bp.nse = 1; + /* FIXME for now we only care about retransmissions, so set both NSE and IRC + * to RTN + */ + bp.nse = MIN(cmd->rtn, 0x0f);; bp.bn = 1; - bp.irc = 1; + bp.irc = MIN(cmd->rtn, 0x0f); bp.pto = 0; bp.iso_interval = bp.sdu_interval / 1250; bp.max_pdu = bp.max_sdu;