Skip to content

CIG: Fix CIG parameters for unidirectional CIS#943

Open
uier wants to merge 1 commit into
mainfrom
cis-fix-unidirectional
Open

CIG: Fix CIG parameters for unidirectional CIS#943
uier wants to merge 1 commit into
mainfrom
cis-fix-unidirectional

Conversation

@uier

@uier uier commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

When setting up a CIG for a unidirectional CIS (e.g., Central-to-Peripheral only), the unused direction's max SDU size is set to 0. However, the other parameters (retransmission count and PHY) defaulted to non-zero values. This caused controllers to reject the configuration during CIG setup or CIS establishment with error 0x30 (Parameter Out Of Mandatory Range).

This change resets the retransmission count and PHY to 0 for any direction where max SDU is 0. A test_cis_parameters_unidirectional test is included with this change.

This commit also fixes parameterize decorator syntax in several test files to resolve test collection failures in Python 3.13 / pytest 8.

When setting up a CIG for a unidirectional CIS (e.g.,
Central-to-Peripheral only), the unused direction's max SDU size is
set to 0. However, the other parameters (retransmission count and PHY)
defaulted to non-zero values. This caused controllers to reject the
configuration during CIG setup or CIS establishment with error 0x30
(Parameter Out Of Mandatory Range).

This change resets the retransmission count and PHY to 0 for any
direction where max SDU is 0. A test_cis_parameters_unidirectional test
is included with this change.

This commit also fixes parameterize decorator syntax in several test
files to resolve test collection failures in Python 3.13 / pytest 8.
@uier uier requested a review from zxzxwu June 24, 2026 05:32
@uier uier self-assigned this Jun 24, 2026
Comment thread bumble/device.py
rtn_p_to_c: int = DEVICE_DEFAULT_ISO_CIS_RTN # Number of P->C retransmissions

def __post_init__(self) -> None:
if self.max_sdu_c_to_p == 0:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a comment here explaining the reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants