Skip to content

Commit 48c83a1

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: Controller: Fix num cmplt for BIS HCI ISO Data fragments
Fix number of completed packets generated when BIS HCI ISO Data packets sent to Controller are in fragments. Use the ISOAL stored sdu_fragment count to generate the number of completed packets count. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent a178aa9 commit 48c83a1

File tree

1 file changed

+4
-12
lines changed
  • subsys/bluetooth/controller/ll_sw

1 file changed

+4
-12
lines changed

subsys/bluetooth/controller/ll_sw/ull.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,18 +2572,10 @@ static uint8_t tx_cmplt_get(uint16_t *handle, uint8_t *first, uint8_t last)
25722572
/* We must count each SDU HCI fragment */
25732573
tx_node = tx->node;
25742574
if (IS_NODE_TX_PTR(tx_node)) {
2575-
if (IS_ADV_ISO_HANDLE(tx->handle)) {
2576-
/* FIXME: ADV_ISO shall be updated to
2577-
* use ISOAL for TX. Until then, assume
2578-
* 1 node equals 1 fragment.
2579-
*/
2580-
sdu_fragments = 1U;
2581-
} else {
2582-
/* We count each SDU fragment completed
2583-
* by this PDU.
2584-
*/
2585-
sdu_fragments = tx_node->sdu_fragments;
2586-
}
2575+
/* We count each SDU fragment completed
2576+
* by this PDU.
2577+
*/
2578+
sdu_fragments = tx_node->sdu_fragments;
25872579

25882580
/* Replace node reference with fragments
25892581
* count

0 commit comments

Comments
 (0)