summaryrefslogtreecommitdiffstats
path: root/btif
diff options
context:
space:
mode:
authorRavi Nagarajan <nravi@broadcom.com>2012-06-14 14:11:05 +0530
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:23 -0700
commitfed66f7b66d29da466e2e67befe3238e7ed8fc6a (patch)
tree2910a40fadafc6d9774134bf277b85f4a06f3146 /btif
parent548ae5f7abd366a6d85b485875dee401d2411f67 (diff)
downloadexternal_bluetooth_bluedroid-fed66f7b66d29da466e2e67befe3238e7ed8fc6a.zip
external_bluetooth_bluedroid-fed66f7b66d29da466e2e67befe3238e7ed8fc6a.tar.gz
external_bluetooth_bluedroid-fed66f7b66d29da466e2e67befe3238e7ed8fc6a.tar.bz2
Handle AG SLC setup timeout
If the AG SLC is not setup within 10 seconds, disconnect the link Change-Id: If60338e821e575bf46bb81a5f3a640b7d530eb2f
Diffstat (limited to 'btif')
-rwxr-xr-xbtif/src/btif_hf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/btif/src/btif_hf.c b/btif/src/btif_hf.c
index bcbf00a..63b1787 100755
--- a/btif/src/btif_hf.c
+++ b/btif/src/btif_hf.c
@@ -328,6 +328,10 @@ static void btif_hf_upstreams_evt(UINT16 event, char* p_param)
bdsetany(btif_hf_cb.connected_bda.address);
btif_hf_cb.peer_feat = 0;
clear_phone_state();
+ /* If AG_OPEN was received but SLC was not setup in a specified time (10 seconds),
+ ** then AG_CLOSE may be received. We need to advance the queue here
+ */
+ btif_queue_advance();
break;
case BTA_AG_CONN_EVT: