OSDN Git Service

open GATT client didn't reserve the BLE link if open after connected.
authorZhihai Xu <zhihaixu@google.com>
Mon, 3 Mar 2014 20:50:13 +0000 (12:50 -0800)
committerZhihai Xu <zhihaixu@google.com>
Wed, 2 Apr 2014 23:11:06 +0000 (16:11 -0700)
commitd5733232313da1a9a6c27c37c1ce8dc2d7c790ac
tree8b59a236bf11cf92e5703bda5523810b216694df
parent3576c564b33c20b5e2e90fdd3bca7ce24392ca50
open GATT client didn't reserve the BLE link if open after connected.

need to reserve the BLE link to avoid BLE disconnection.
BTA_GATTC_OPEN_ERROR won't resereve the BLE link usage.
use BTA_GATTC_OPEN instead of BTA_GATTC_OPEN_ERROR to reserve the
BLE link. other the stack disconnect the BLE link due to no Gatt interface
use this connection.

bug:13228455
Change-Id: I1f9daa2171668f2ae535d998b401f1f0825d0451
bta/gatt/bta_gattc_main.c