Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 72ded40e authored by Hemant Gupta's avatar Hemant Gupta
Browse files

SMP: Add error status in case of no L2CAP LCB's

Usecase:
1) Pair/Connect DUT with devices until MAX_L2CAP_LINKS is reached
2) Try to pair with new BLE Device.

Expected Result:
Pairing should fail gracefully since MAX_L2CAP_LINKS is reached

Observed Results:
Pairing stuck in repeated loop until BT off and on.

Root Cause:
Callback status is not updated with failure in case of error in
connecting L2CAP Fixed channel during SMP Pair due to unavailability
of LCB(s).

Fix:
Update the error code before sending SMP_AUTH_CMPL_EVT to SMP
state machine.

Test: Above usecase works fine after the change

Bug: 157326526
Change-Id: Idcee8869c4d87d4da98ce2ded95c97034f5f1b5c
parent d54932d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment