OSDN Git Service

Avoid duplicate disconnection callbacks for fixed channel connections
authorSatya Calloji <satyac@broadcom.com>
Tue, 17 Mar 2015 20:12:01 +0000 (13:12 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 9 Apr 2015 00:16:57 +0000 (17:16 -0700)
commit0b47e0a35c16f5b7d77c30ec1c095ed92ff4fd74
tree8a8fc5e53211c89282269d791ca45ce1326c3a93
parent564697357d3041d8977d98e9680c09f1735be249
Avoid duplicate disconnection callbacks for fixed channel connections

Fixed channel connections are getting a disconnect callback when the
HCI command is issued and when the HCI disconnect completes. This
causes problems if the upper layer trying to reconnect at link
disconnecting state.
Triggering the disconnect callback only once solves this problem.

Original author: Chaojing Sun <cjsun@broadcom.com>

Bug: 19816438
Change-Id: Ib661c968e586975a7fc7244e2d0745f71d52e3e9
stack/l2cap/l2c_api.c
stack/l2cap/l2c_int.h
stack/l2cap/l2c_link.c
stack/l2cap/l2c_main.c [changed mode: 0755->0644]
stack/l2cap/l2c_utils.c