Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e34c4c5 authored by IHLHO KIM's avatar IHLHO KIM Committed by Andre Eisenbach
Browse files

Fix the GATT re-discovery failure when GATT service discovery is ongoing

If 'BTA_GATTC_Refresh' is called when GATT service discovery is ongoing, GATT service discovery should be restarted after GATT service discovery is completed.
But it cannot be restarted actually because of missing set 'auto_update' state.
This patch set 'auto_update' state to start discovery again correctly.

Change-Id: Id18f04705fef253261e52836849e4e6020e42a05
parent d1fe2fde
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1048,6 +1048,7 @@ void bta_gattc_disc_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data)
    if (p_clcb->auto_update == BTA_GATTC_DISC_WAITING)
    {
        /* start discovery again */
        p_clcb->auto_update = BTA_GATTC_REQ_WAITING;
        bta_gattc_sm_execute(p_clcb, BTA_GATTC_INT_DISCOVER_EVT, NULL);
    }
    /* get any queued command to proceed */