This is an automated email from the ASF dual-hosted git repository.
rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new f4702af0 nimble/ll: Use retransmissions for BIG Create
f4702af0 is described below
commit f4702af0a1423062a2692addcc0b7f3ac9b06277
Author: Andrzej Kaczmarek <[email protected]>
AuthorDate: Thu Aug 1 15:46:19 2024 +0200
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 e41f3f94..0645ed44 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;