Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nimble/ll: solve issue with duplicated ISO flags #1641

Merged
merged 3 commits into from
Oct 17, 2023

Conversation

KKopyscinski
Copy link
Contributor

This patch makes MYNEWT_VAL flags consistent: BLE_LL_CFG_FEAT_LL_ISO defines same functionality as BLE_LL_ISO, and the latter shall be used.

Removed duplicated case in ble_ll_hci_le_cmd_proc for BLE_HCI_OCF_LE_READ_ISO_TX_SYNC OP code.

This patch removes boilerplate for ISO code. This code causes conflicts
when proper implementation is introduced, as new LL flags are
introduced.

This causes bugs like duplicated case for
BLE_HCI_OCF_LE_READ_ISO_TX_SYNC OP Code.

Unsupported functions were removed, along with BLE_LL_CFG_FEAT_LL_ISO
and BLE_LL_CFG_FEAT_LL_ISO_TEST flag (BLE_LL_ISO and BLE_LL_ISO_TEST are
currently used). BLE_ISO_BROADCAST flag was introduced, and
BLE_LL_ISO_BROADCASTER inherits its value, by default. Similary, BLE_LL_ISO
inherits default value from BLE_ISO now.
Silences error: 'hci_ev_ncp' may be used uninitialized: it is derived
from hci_ev, and only used when hci_ev != NULL. So it'll never be NULL
when used.
@KKopyscinski
Copy link
Contributor Author

@andrzej-kaczmarek as discussed offline, I removed code that caused errors. I also checked LL ISO command structs in hci_common.h and they are ok.

@KKopyscinski KKopyscinski changed the title nimble/ll: fix BLE_LL_ISO flags and function names nimble/ll: solve issue with duplicated ISO flags Oct 17, 2023
@KKopyscinski KKopyscinski merged commit cfe8b1b into apache:master Oct 17, 2023
14 checks passed
@KKopyscinski KKopyscinski deleted the ll_iso_fix_flags branch February 13, 2024 07:53
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