OSDN Git Service

Make gatt_attr use opportunistic connection
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 18 Jul 2016 16:06:49 +0000 (09:06 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 18 Aug 2016 20:50:25 +0000 (20:50 +0000)
commit8ed030ff4a36b248e1b115f94ddd4650d4b5e360
tree28734d6f779c05561b1e5128a119ad6519dda032
parent3b9c4610e02e45bb534f31cce127656520267f62
Make gatt_attr use opportunistic connection

This patch creates new connection mode - opportunistic connection. When
such connection is made, no call to gatt_update_app_hold_link_status
will be made when it's started.

This means that connecting and disconnecting in this mode won't trigger
disconnect timer. When other, app creates regular connection and then
disconnects, the physical connection might get disconnected.

Opportunistic connection is used only for code setting CCC right now.

Bug: 30186455
Change-Id: Ia5be7682b6c3dcb4993060f818dee603aef3e19e
bta/gatt/bta_gattc_act.c
bta/gatt/bta_gatts_act.c
btif/src/btif_gatt_test.c
stack/gap/gap_ble.c
stack/gatt/gatt_api.c
stack/gatt/gatt_attr.c
stack/gatt/gatt_int.h
stack/gatt/gatt_main.c
stack/include/gatt_api.h
stack/srvc/srvc_dis.c