OSDN Git Service

Fix BT connection failures
authorDevin Kim <dojip.kim@lge.com>
Thu, 3 Dec 2015 21:19:20 +0000 (13:19 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 23 Dec 2015 03:14:42 +0000 (03:14 +0000)
commit78500516e502944f7e3f86fcfbe70f797a2e45e5
treeba7fc72116404fd3b6b748bbe8af3bf8b5300804
parentb9757ee3c9f1bb4d521624606db5b2e7ba722eeb
Fix BT connection failures

When HFP connection failed establishing between phone and watch, it can't
recover RFCOMM status which causes that HFP connection will not be made
unless BT radio goes off and comes back on. RFCOMM and HFP both trying to
open RFCOMM control channel at nearly same time, at some point, there's
a possibility that SABM packet didn't reach out to BT controller to connect
to phone from watch with HFP while phone tries to connect to watch with
AW RFCOMM.

This will take care of pending SABM packet to reach out to controller
properly so that RFCOMM status will not be messed.

Bug: 24285000
Bug: 25579482
Bug: 25579423
Bug: 25578997
Change-Id: Icc26b86c644ebd8d1c12a2fb4e94d04ba16cc2dd
stack/rfcomm/rfc_mx_fsm.c