From f8994e1406f9a9e243f0a17518ca73bc40d04691 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Wed, 7 Aug 2024 01:00:46 +0200 Subject: [PATCH] nimble/ll: Fix LLID for empty BIS PDUs LLID=1 should be only used for empty PDUs that are sent as padding for SDUs that are too short. --- nimble/controller/src/ble_ll_isoal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimble/controller/src/ble_ll_isoal.c b/nimble/controller/src/ble_ll_isoal.c index fd9d205fe5..0ae6d6b780 100644 --- a/nimble/controller/src/ble_ll_isoal.c +++ b/nimble/controller/src/ble_ll_isoal.c @@ -205,7 +205,7 @@ ble_ll_isoal_mux_unframed_get(struct ble_ll_isoal_mux *mux, uint8_t idx, pdu_idx = idx - sdu_idx * mux->pdu_per_sdu; if (sdu_idx >= mux->sdu_in_event) { - *llid = 1; + *llid = 0; return 0; } @@ -215,7 +215,7 @@ ble_ll_isoal_mux_unframed_get(struct ble_ll_isoal_mux *mux, uint8_t idx, } if (!pkthdr) { - *llid = 1; + *llid = 0; return 0; }