Skip to content

Commit 86757f5

Browse files
heml-otcarlescufi
authored andcommitted
Bluetooth: controller: Fix channel selection
For ISO-subevents channel selection must use remap table always -regardless of channel is a mapped or unmapped channel. Signed-off-by: Henrik Møller <[email protected]>
1 parent c976211 commit 86757f5

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

subsys/bluetooth/controller/ll_sw/lll_chan.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,9 @@ uint8_t lll_chan_iso_subevent(uint16_t chan_id, uint8_t *chan_map,
144144
x = 0;
145145
}
146146

147-
chan_idx = ((((uint32_t)prn_subevent_se * x) >> 16) +
148-
d + *remap_idx) % chan_count;
149-
150-
if ((chan_map[chan_idx >> 3] & (1 << (chan_idx % 8))) == 0U) {
151-
*remap_idx = chan_idx;
152-
chan_idx = chan_sel_remap(chan_map, *remap_idx);
153-
} else {
154-
*remap_idx = chan_idx;
155-
}
147+
*remap_idx = ((((uint32_t)prn_subevent_se * x) >> 16) +
148+
d + *remap_idx) % chan_count;
149+
chan_idx = chan_sel_remap(chan_map, *remap_idx);
156150

157151
return chan_idx;
158152
}

0 commit comments

Comments
 (0)