X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=bta%2Fgatt%2Fbta_gattc_act.c;h=3390b947558ec90b22602710e70d9075dbf7a2cc;hb=f87953f1be45c8f3e6f28610e1ac4dd29be007f1;hp=388d9a429c9f4108e03ed86817b57425bce771c4;hpb=ea0dc3c6539ae83876926e938b4f3d65df16d204;p=android-x86%2Fsystem-bt.git diff --git a/bta/gatt/bta_gattc_act.c b/bta/gatt/bta_gattc_act.c index 388d9a429..3390b9475 100644 --- a/bta/gatt/bta_gattc_act.c +++ b/bta/gatt/bta_gattc_act.c @@ -518,7 +518,7 @@ void bta_gattc_open(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) /* open/hold a connection */ if (!GATT_Connect(p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, - TRUE, p_data->api_conn.transport)) + true, p_data->api_conn.transport, false)) { APPL_TRACE_ERROR("Connection open failure"); @@ -558,7 +558,7 @@ void bta_gattc_init_bk_conn(tBTA_GATTC_API_OPEN *p_data, tBTA_GATTC_RCB *p_clreg if (bta_gattc_mark_bg_conn(p_data->client_if, p_data->remote_bda, TRUE, FALSE)) { /* always call open to hold a connection */ - if (!GATT_Connect(p_data->client_if, p_data->remote_bda, FALSE, p_data->transport)) + if (!GATT_Connect(p_data->client_if, p_data->remote_bda, false, p_data->transport, false)) { uint8_t *bda = (uint8_t *)p_data->remote_bda; status = BTA_GATT_ERROR; @@ -715,6 +715,7 @@ void bta_gattc_conn(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) { p_clcb->p_srcb->state = BTA_GATTC_SERV_LOAD; if (bta_gattc_cache_load(p_clcb)) { + p_clcb->p_srcb->state = BTA_GATTC_SERV_IDLE; bta_gattc_reset_discover_st(p_clcb->p_srcb, BTA_GATT_OK); } else { p_clcb->p_srcb->state = BTA_GATTC_SERV_DISC;