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

Cherry pick 2024 02 12 #1495

Merged
merged 12 commits into from
Feb 14, 2024
Merged

Cherry pick 2024 02 12 #1495

merged 12 commits into from
Feb 14, 2024

Conversation

koffes
Copy link
Contributor

@koffes koffes commented Feb 13, 2024

No description provided.

@koffes koffes requested review from andvib and alexsven February 13, 2024 14:25
@koffes koffes force-pushed the cherry-pick-2024-02-12 branch from 2380bce to 0adc4c3 Compare February 13, 2024 14:55
Thalley and others added 12 commits February 13, 2024 15:57
…start

When CONFIG_BT_ISO_TEST_PARAMS is enabled then the
bt_bap_broadcast_source_param in
bt_cap_initiator_broadcast_audio_create had uninitialized values.

A general and future proof solution for this is to simply initialize
the entire struct to 0.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit f4b8341)
…tion fix

Since we may go from enabling to qos-configured state if the
call to bt_iso_big_create fails, that is a valid transition.
If bt_iso_big_create currently fails, then the source ends in a
state where it cannot be recovered.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit 590d3e1)
…emove

If the receive state is locally removed, then we should not
request permission from the application, as that is implicit
when removing the source locally.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit 7643526)
…ive state

The receive state may be added by the broadcast sink if not added
by the application, but even in that case when the broadcast sink
is deleted, we should not remove the receive state, as the receive
state may still container information about the PA sync that has a
lifetime not coupled with the broadcast sink.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit 43bc320)
…sconnects

When the CIS of a source ASE disconnects, the server shall put
it into the QoS Configured state, which is not really part of the
state machine for source ASEs, but more like a hidden bonus state
change.

The state machine handler in the unicast client has been updated
to support this state change.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit b173c21)
…ected

If we disconnect in the middle of e.g. a discovery, then
client-busy (and other values) were not correctly reset,
which effectively rendered the client useless.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit 8b8569e)
…set_val

The function did not move data correctly when increasing
or decreasing the size of a value that was not the last value
in the LTV array.

Added a few tests to verify the fix, using the CCID list as the
main way of verifying it.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit 68f8c8f)
Moved seq_num check to after bt_iso_chan_send.
This prevents WRN prints if ISO send fails.

Signed-off-by: Kristoffer Rist Skøien <[email protected]>
(cherry picked from commit ace435d)
This removes spurious error message printed when CIS has been
disconnected and it was not used by any of the endpoints.
This case is valid and may happen on Connection Timeout when the
controller reports ACL Disconnection first.
When the CIS Disconnection is reported after, the ASE is already in idle
state and the referenece to CIS has been already removed (on ACL
disconnection).

Fixes: #64896
Signed-off-by: Mariusz Skamra <[email protected]>
(cherry picked from commit b373079)
…a_len

The length of the updated metadata was not updated.
Fixes the CAP/INI/BST/BV-13-C test case.

Signed-off-by: Magdalena Kasenberg <[email protected]>
(cherry picked from commit e05d964)
The length check in ltv_set_val did not consider the size of
the length or type fields.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit 234b322)
…econfig

The stream_in_subgroup variable in bt_bap_broadcast_source_reconfig
may have been uninitialized.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit f4cbf40)
@koffes koffes force-pushed the cherry-pick-2024-02-12 branch from 0adc4c3 to bf10cae Compare February 13, 2024 14:57
@rlubos rlubos merged commit 617f2d3 into nrfconnect:main Feb 14, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants