OSDN Git Service

Allocate lcb when connection complete if can't find one
authorChienyuan <chienyuanhuang@google.com>
Wed, 29 Aug 2018 05:38:19 +0000 (13:38 +0800)
committerChienyuan <chienyuanhuang@google.com>
Thu, 6 Sep 2018 08:11:36 +0000 (16:11 +0800)
commitd53036302e0ba0fe839e0163f51ba6cc6774143f
treef4af3ec7e8aded4a577455aea97df4fe8767f311
parent780e29c2191f96327f593dc9f6db48d016989c19
Allocate lcb when connection complete if can't find one

When BT stack sends create connection command and receive connection
request at the same time, connection request will reuse the link control
block created by create connection command. But the link control block
will be released before connection complete due to controller busy.

Bug:112818458
Test: manual - turn on BT and turn on Headset within little time gap
Change-Id: Ie30c655b933250f1709ba10c578ea5f30ea13139
stack/l2cap/l2c_link.cc