OSDN Git Service

Remove redundant GATT_StartIf
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 13 Dec 2018 16:53:15 +0000 (17:53 +0100)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 13 Dec 2018 21:55:33 +0000 (22:55 +0100)
commitcb45b1e380126f300d9f7d89a8382438c5d06cd3
treec95322fb46a8d578f81ed8fb9bcb369ef4abb46c
parentfef2539cd2fa335e2e420c7a9109ff029d7e68f3
Remove redundant GATT_StartIf

GATT_StartIf is just sending connect callback about all currently
connected devices, even ones that this app is not interested in.

For btif/java apps, we will trigger connection attempt to just one
device right after registration, which would trigger connect callback
anyway.

For all bta layer apps, they do guard inside connect callback to make
sure code is triggered for already known device, but the devices are
considered as known only after they already connected, and some event
triggered app to create control block.

Thus, GATT_StartIf is surplus feature that should be removed.

Test: run all sl4a GATT tests
Change-Id: I8c45b92dbbf80894c32bb870eb392e766063c934
bta/gatt/bta_gattc_act.cc
bta/gatt/bta_gatts_act.cc
bta/gatt/bta_gatts_int.h
bta/gatt/bta_gatts_main.cc
btif/src/btif_gatt_test.cc
stack/gap/gap_ble.cc
stack/gatt/gatt_api.cc
stack/gatt/gatt_attr.cc
stack/include/gatt_api.h
stack/srvc/srvc_eng.cc