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

Commit c1a26cba authored by Mudumba Ananth's avatar Mudumba Ananth Committed by Andre Eisenbach
Browse files

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
parent 55753001
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 */