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

Skip to content
Commit 8410d0b6 authored by Archie Pusaka's avatar Archie Pusaka
Browse files

Fix SMP total_tx_unacked counting

total_tx_unacked needs to be incremented before L2CA_SendFixedChnlData
is called, because it is possible to call smp_tx_complete_callback
immediately, in which we should decrement the value but we can't since
it is still zero.

If this happens, we will be stuck with total_tx_unacked = 1 after the
SMP transaction is done, and we don't actually detect it as complete.

Bug: 319027651
Bug: 314819704
Test: m -j
Test: Pair with LE device, and run LE pairing tests.
Change-Id: I1fd32297f77f5d61ccd80f41f87639c1b3b3df56
parent ed670559
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