OSDN Git Service

GATT: don't update link status for apps that were never connected
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 16 Jun 2016 15:16:48 +0000 (08:16 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 18 Aug 2016 20:51:00 +0000 (20:51 +0000)
commitd921c78fc67f1d454bd454c61ac44534ab8e0e59
treea4f40bebee1cac2f2fb5eabf777c887d8e057239
parent3b9c4610e02e45bb534f31cce127656520267f62
GATT: don't update link status for apps that were never connected

Right now, in GATT_Deregister we make a call to
gatt_update_app_use_link_flag, which might result in a call to
GATT_SetIddleTimeout on links that this client was never connected to.

In order to fix that, we must check if gatt_update_app_hold_link_status
made any changes to p_tcb->app_hold_link. If not, then skip updating
the timer.

Change-Id: I6f18ec7fe4e80e048adc9e360cae703b7d64d62a
stack/gatt/gatt_main.c