Skip to content

Commit

Permalink
nimble/ll: Fix RTN handling in HCI BIG Create
Browse files Browse the repository at this point in the history
RTN is number of retransmissions onlt so IRC=RTN+1.
  • Loading branch information
andrzej-kaczmarek committed Sep 25, 2024
1 parent 363d97a commit 1cdbbe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nimble/controller/src/ble_ll_iso_big.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1cdbbe8

Please sign in to comment.