Skip to content

Commit 88705be

Browse files
cvinayakfabiobaltieri
authored andcommitted
Bluetooth: Controller: Fix BIS max PDU size used in calc of sub_interval
Fix BIS max PDU size used in calc of sub_interval, use the minimum of supported maximum BIS PDU size and the requested SDU size. This will avoid wasted air time between subevents when SDU size is less than maximum supported PDU size, where only 150 us tIFS is mandatory between subevents. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 7249fbe commit 88705be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/controller/ll_sw/ull_adv_iso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ uint8_t ll_big_create(uint8_t big_handle, uint8_t adv_handle, uint8_t num_bis,
192192
/* TODO: parameters to ULL if only accessed by ULL */
193193
lll_adv_iso = &adv_iso->lll;
194194
lll_adv_iso->handle = big_handle;
195-
lll_adv_iso->max_pdu = LL_BIS_OCTETS_TX_MAX;
195+
lll_adv_iso->max_pdu = MIN(LL_BIS_OCTETS_TX_MAX, max_sdu);
196196
lll_adv_iso->phy = phy;
197197
lll_adv_iso->phy_flags = PHY_FLAGS_S8;
198198

0 commit comments

Comments
 (0)