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)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 23 Aug 2016 07:16:35 +0000 (00:16 -0700)
commit970d9d18ec4fb8f154619db2841a881d7dcce053
treed6d69b1adcd17265620c5964c83454b0299ef432
parentaab757d3d6cba2bde6c243ca59c73262d2826477
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