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

Skip to content
Commit 4d1cba45 authored by Mehmet Murat Sevim's avatar Mehmet Murat Sevim Committed by William Escande
Browse files

Initialize remote_credit_count when L2CAP on connection request.

Without this change, remote_credit_count starts from zero and
overflows to 0xffff when the first packet is received. This is not a
big deal with the default Android credit params (only off by one) but
it leads to peer running out of credit if a low
L2CAP_LE_CREDIT_DEFAULT is used on the build.

Bug: 264642648
Bug: 264878187
Test: manual - verified L2CAP connection is not stuck when initial
credits is 0x18.

Change-Id: Ie630883ce70463dc18fc2a0c1c8b1ccc39cd2f1d
parent 3f638e5f
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