OSDN Git Service

Bluetooth: Increase profile connection timeout
authorNitin Arora <niarora@codeaurora.org>
Fri, 5 Aug 2016 00:39:01 +0000 (17:39 -0700)
committerLinux Build Service Account <lnxbuild@localhost>
Wed, 24 Aug 2016 14:10:08 +0000 (08:10 -0600)
commit9877859734c41a532f6a12883948f3c74282afb3
tree16c9138d3b0cf2cd12e168e1a61f47052f394e22
parent0f6cf7ac369d8451dff96db9d1e9f65581515743
Bluetooth: Increase profile connection timeout

This change increases the timeout after the gatt
discovery complete from 1 sec to 5 sec.
For profiles such as HOGP, the profile level gatt connections
after the discovery complete callbacks sometime take more time,
due to which the "no app timeout" disconnects the physical link.
This change will hold the gatt connection used for remote discovery,
for 5 seconds, after the discovery is complete, and thus provide
sufficient time for the profile level connections to kick in.

CRs-Fixed: 1050047
Change-Id: I8f3c3ad162e3dadeb0e3215bf9fe6a20e4d9c425
bta/dm/bta_dm_act.c