diff options
author | Satya Calloji <satyac@broadcom.com> | 2015-03-17 13:12:01 -0700 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-04-08 17:16:57 -0700 |
commit | 0b47e0a35c16f5b7d77c30ec1c095ed92ff4fd74 (patch) | |
tree | 8a8fc5e53211c89282269d791ca45ce1326c3a93 /stack/l2cap/l2c_main.c | |
parent | 564697357d3041d8977d98e9680c09f1735be249 (diff) | |
download | android_system_bt-0b47e0a35c16f5b7d77c30ec1c095ed92ff4fd74.tar.gz android_system_bt-0b47e0a35c16f5b7d77c30ec1c095ed92ff4fd74.tar.bz2 android_system_bt-0b47e0a35c16f5b7d77c30ec1c095ed92ff4fd74.zip |
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
Diffstat (limited to 'stack/l2cap/l2c_main.c')
-rw-r--r--[-rwxr-xr-x] | stack/l2cap/l2c_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stack/l2cap/l2c_main.c b/stack/l2cap/l2c_main.c index 02f12a78b..5f541b5e3 100755..100644 --- a/stack/l2cap/l2c_main.c +++ b/stack/l2cap/l2c_main.c @@ -892,6 +892,9 @@ void l2c_init (void) l2cb.high_pri_min_xmit_quota = L2CAP_HIGH_PRI_MIN_XMIT_QUOTA; #endif + l2cb.l2c_ble_fixed_chnls_mask = + L2CAP_FIXED_CHNL_ATT_BIT | L2CAP_FIXED_CHNL_BLE_SIG_BIT | L2CAP_FIXED_CHNL_SMP_BIT; + l2cb.rcv_pending_q = list_new(NULL); if (l2cb.rcv_pending_q == NULL) LOG_ERROR("%s unable to allocate memory for link layer control block", __func__); |