OSDN Git Service

Call gatt_disconnect if the LE connection is not established and no APP use it.
authorweichinweng <weichinweng@google.com>
Mon, 25 Mar 2019 05:51:10 +0000 (13:51 +0800)
committerweichinweng <weichinweng@google.com>
Mon, 22 Apr 2019 02:03:22 +0000 (10:03 +0800)
commite27bb1d66ef4485b824b560cd5e0171f5cd9b1d4
treecd18afe3b44cde99617b30487f911cf2b957003b
parentc12e92e84e34e995da3b7d50b195577adb438789
Call gatt_disconnect if the LE connection is not established and no APP use it.

When the LE connection hold APP is removed, if the LE connection is not
established and no APP use it, we never free transport control block
(p_tcb) or close it. For BLE device that have not established and no APP
use it, will call gatt_disconnect to free p_tcb and go to close state.

Bug: 127908699
Test: GattConnectTest
Change-Id: Ifed10c67141cb4c9221478db759c5614714fff30
Merged-In: Ifed10c67141cb4c9221478db759c5614714fff30
stack/gatt/gatt_main.cc