nimble/ll: Fix RTN handling in HCI BIG Create

RTN is number of retransmissions onlt so IRC=RTN+1.
This commit is contained in:
Andrzej Kaczmarek
2024-09-23 17:35:09 +02:00
parent 363d97a5ae
commit 1cdbbe8a79
+2 -2
View File
@@ -1302,9 +1302,9 @@ ble_ll_iso_big_hci_create(const uint8_t *cmdbuf, uint8_t len)
/* FIXME for now we only care about retransmissions, so set both NSE and IRC
* to RTN
*/
bp.nse = MIN(cmd->rtn, 0x0f);;
bp.nse = MIN(cmd->rtn + 1, 0x0f);;
bp.bn = 1;
bp.irc = MIN(cmd->rtn, 0x0f);
bp.irc = MIN(cmd->rtn + 1, 0x0f);
bp.pto = 0;
bp.iso_interval = bp.sdu_interval / 1250;
bp.max_pdu = bp.max_sdu;