• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

Revisiónf87953f1be45c8f3e6f28610e1ac4dd29be007f1 (tree)
Tiempo2016-10-04 06:25:29
AutorJakub Pawlowski <jpawlowski@goog...>
CommiterJakub Pawlowski

Log Message

Fix bad GATT client state machine state after successfull cache load

If the GATT service cache was successfully loaded from a file, the
state must be reset to idle.

Bug: 31175159
Change-Id: I92ebf1bec9d2e7467d7412b41923614ec5a13b6d

Cambiar Resumen

Diferencia incremental

--- a/bta/gatt/bta_gattc_act.c
+++ b/bta/gatt/bta_gattc_act.c
@@ -715,6 +715,7 @@ void bta_gattc_conn(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data)
715715 {
716716 p_clcb->p_srcb->state = BTA_GATTC_SERV_LOAD;
717717 if (bta_gattc_cache_load(p_clcb)) {
718+ p_clcb->p_srcb->state = BTA_GATTC_SERV_IDLE;
718719 bta_gattc_reset_discover_st(p_clcb->p_srcb, BTA_GATT_OK);
719720 } else {
720721 p_clcb->p_srcb->state = BTA_GATTC_SERV_DISC;