summaryrefslogtreecommitdiffstats
path: root/stack/gatt/gatt_api.c
diff options
context:
space:
mode:
authorZhihai Xu <zhihaixu@google.com>2014-02-05 20:04:48 -0800
committerZhihai Xu <zhihaixu@google.com>2014-02-06 11:37:01 -0800
commit5fba60a8761b28adec2704dcbf69376ebde4f19b (patch)
treec97a5681c51bff2956e6987a72bafe51bb43a761 /stack/gatt/gatt_api.c
parente372d9b58a288348782d01f534cf6dc81a7934c7 (diff)
downloadandroid_system_bt-5fba60a8761b28adec2704dcbf69376ebde4f19b.tar.gz
android_system_bt-5fba60a8761b28adec2704dcbf69376ebde4f19b.tar.bz2
android_system_bt-5fba60a8761b28adec2704dcbf69376ebde4f19b.zip
resend discovery primary service ATT request with timeout
This is to work around the problem with iphone. The iphone didn't respond with our first ATT request (read By group type Request for for primary service). the clockwork/phone host keep waiting for ATT response until disconnection from iphone due to timeout. The workaround is to resend discovery primary service before disconnection from remote device when response timeout happen. This workaround will be better for us to interop with remote BLE device. bug:12895830 Change-Id: I236af8eca9790f2dae7098061c74cec55348ca6d
Diffstat (limited to 'stack/gatt/gatt_api.c')
-rw-r--r--stack/gatt/gatt_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stack/gatt/gatt_api.c b/stack/gatt/gatt_api.c
index b53b7c5c8..232b191a9 100644
--- a/stack/gatt/gatt_api.c
+++ b/stack/gatt/gatt_api.c
@@ -1285,6 +1285,7 @@ void GATT_Deregister (tGATT_IF gatt_if)
(p_clcb->p_reg->gatt_if == gatt_if) &&
(p_clcb->p_tcb->tcb_idx == p_tcb->tcb_idx))
{
+ btu_stop_timer(&p_clcb->rsp_timer_ent);
gatt_clcb_dealloc (p_clcb);
break;
}