diff options
author | Mudumba Ananth <ananthm@broadcom.com> | 2014-07-03 23:56:42 -0700 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2014-07-30 16:55:05 -0700 |
commit | f8aaa621c6a3e965844e1c460fa7af0f8fdd7271 (patch) | |
tree | 38016ab9c8d09178c68f3a46e02152feb935acd4 /stack/gatt/gatt_main.c | |
parent | 4a7ad9be81cc2b515502f2c1fb1b7ec7e3104146 (diff) | |
download | android_system_bt-f8aaa621c6a3e965844e1c460fa7af0f8fdd7271.tar.gz android_system_bt-f8aaa621c6a3e965844e1c460fa7af0f8fdd7271.tar.bz2 android_system_bt-f8aaa621c6a3e965844e1c460fa7af0f8fdd7271.zip |
Service change indication is not sent to a bonded remote device sometimes
-> The service change indication was requested before
GATT profile finished processing the connection callback.
-> Sending service change indication after
profile connection is up solves the problem.
Bug: 16560957
Change-Id: I99dd7528883efbedcbf785132fe6aaa3aea5b42c
Diffstat (limited to 'stack/gatt/gatt_main.c')
-rw-r--r-- | stack/gatt/gatt_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stack/gatt/gatt_main.c b/stack/gatt/gatt_main.c index c14abc833..54951b2bc 100644 --- a/stack/gatt/gatt_main.c +++ b/stack/gatt/gatt_main.c @@ -410,8 +410,6 @@ static void gatt_le_connect_cback (BD_ADDR bd_addr, BOOLEAN connected, /* do we have a channel initiating a connection? */ if (p_tcb) { - if (check_srv_chg) - gatt_chk_srv_chg (p_srv_chg_clt); /* we are initiating connection */ if ( gatt_get_ch_state(p_tcb) == GATT_CH_CONN) { @@ -421,6 +419,8 @@ static void gatt_le_connect_cback (BD_ADDR bd_addr, BOOLEAN connected, gatt_send_conn_cback(p_tcb); } + if (check_srv_chg) + gatt_chk_srv_chg (p_srv_chg_clt); } /* this is incoming connection or background connection callback */ |