OSDN Git Service

resend discovery primary service ATT request with timeout
authorZhihai Xu <zhihaixu@google.com>
Thu, 6 Feb 2014 04:04:48 +0000 (20:04 -0800)
committerZhihai Xu <zhihaixu@google.com>
Thu, 6 Feb 2014 19:37:01 +0000 (11:37 -0800)
commit5fba60a8761b28adec2704dcbf69376ebde4f19b
treec97a5681c51bff2956e6987a72bafe51bb43a761
parente372d9b58a288348782d01f534cf6dc81a7934c7
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
stack/gatt/att_protocol.c
stack/gatt/gatt_api.c
stack/gatt/gatt_cl.c
stack/gatt/gatt_int.h
stack/gatt/gatt_utils.c