OSDN Git Service

Prevent multiple register of service change indication
authorNitin Arora <niarora@codeaurora.org>
Thu, 16 Jun 2016 22:27:59 +0000 (15:27 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Fri, 21 Oct 2016 17:07:00 +0000 (17:07 +0000)
commit645ee14ce2327fff61f54d208763eca1c143063e
tree4438b3a95718920404b4223ff581a5fae1abb253
parent05de2a8ce0a66ed3aa4bbc7638b95576f28e15e2
Prevent multiple register of service change indication

Use Case:
Pair DUT to a remote LE device. The host registers for the service
change indication twice, once when the connection callback is
received and another time, when the SMP process completes

Failure:
There are a few issues caused by this.
First, the duplicate action of service change indication registeration
is unnecessary.
The registeration that follows the SMP process adds a gatt_if to the
apps holding the current link. This gatt_if (=1) never disconnects
after registeration failure or success. And hence the host can never
physically disconnect the link.

Fix:
This change removes the service change registeration at SMP
process completion

Test: manual
Change-Id: I0d7566e2b4a9d01aa7926cdbe9f528c3941fcfeb
bta/dm/bta_dm_act.cc