Bluetooth: Controller: ISO BIS payload counter rollover #44244
Labels
area: Bluetooth Controller
area: Bluetooth
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
The ISO bisPayloadCounter (value of
tx->payload_count
as set insubsys/bluetooth/controller/hci/hci.c
,hci_iso_handle()
) can rollover (e.g. after transmitting ISO data for ~10-11 minutes at 10ms rate, or 64K packets).In
subsys/bluetooth/controller/ll_sw/lll_adv.h
,struct lll_adv_iso_stream
changing the line:
uint16_t pkt_seq_num
to:
uint64_t pkt_seq_num:39
seems to resolve the issue.
To Reproduce
k_sleep(K_SECONDS(1))
insamples/bluetooth/iso_broadcast
and log the variouspayload_count
values near thememq_dequeue()
calls insubsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_iso.c
tx->payload_count
rollover, 2 packets with same bisPayloadCounter occur.Impact
Low priority
The text was updated successfully, but these errors were encountered: