Skip to content
Commit a7cf7eb3 authored by Jonathan Rico's avatar Jonathan Rico Committed by Fabio Baltieri
Browse files

Bluetooth: l2cap: change `connected` cb call condition for ECRED



This was recently refactored (in #58440). But it introduced a bug in which
some channels were connected but not the whole list asked for by the peer.

In that case, `result` will not be `SUCCESS` but we still want to call the
`connected` callback as the peer will consider those channels to be
connected when we send the response.

The symptom is that EATT channels are being instantiated, but not
considered connected (ie. usable by the stack).

Also introduce a test that has asymmetric channel resources (5 on central
vs 2 on peripheral) to reproduce the bug.

Fixes #60212

Signed-off-by: default avatarJonathan Rico <jonathan.rico@nordicsemi.no>
parent 8f3e0fdc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment