summaryrefslogtreecommitdiffstats
path: root/stack/gatt/gatt_main.c
diff options
context:
space:
mode:
authorSatish kumar sugasi <ssugas@codeaurora.org>2015-05-13 18:39:50 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:21:59 -0600
commitadd14031741a784c445f3ad4e40ca6f56a96ecfd (patch)
treed2f5ef6d4e8ac330ce20ad64b1146c1a86813527 /stack/gatt/gatt_main.c
parent949154e8f36370ddddc206cbb6f7812db213213e (diff)
downloadandroid_system_bt-add14031741a784c445f3ad4e40ca6f56a96ecfd.tar.gz
android_system_bt-add14031741a784c445f3ad4e40ca6f56a96ecfd.tar.bz2
android_system_bt-add14031741a784c445f3ad4e40ca6f56a96ecfd.zip
Bluetooth: update gatt channel state to closing during disconnection
This changes Gatt state to CLOSING from OPEN to avoid any farther gatt operations from that particular fixed channel CID during gatt disconnection process. Change-Id: I8511caa477881de4f4eaf18b84f23530e1958fe9
Diffstat (limited to 'stack/gatt/gatt_main.c')
-rw-r--r--stack/gatt/gatt_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stack/gatt/gatt_main.c b/stack/gatt/gatt_main.c
index 168859c72..df1f939b7 100644
--- a/stack/gatt/gatt_main.c
+++ b/stack/gatt/gatt_main.c
@@ -227,9 +227,9 @@ BOOLEAN gatt_disconnect (tGATT_TCB *p_tcb)
}
else
{
- gatt_set_ch_state(p_tcb, GATT_CH_CLOSING);
ret = L2CA_CancelBleConnectReq (p_tcb->peer_bda);
}
+ gatt_set_ch_state(p_tcb, GATT_CH_CLOSING);
}
else
{