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

Commit 79b62f22 authored by Chao Quan's avatar Chao Quan Committed by Ting Zheng
Browse files

Fix gatt_is_bda_in_the_srv_chg_clt_list always return NULL

This function always return NULL. The error prevents server
from sending an indication to client when services is changed
on the server.

Change-Id: I0472baa805b339a062c63f498f3ad9271d7e5701
Test: PTS7.1.1 GATT/SR/GAS/BV-01-C
parent 6b87071b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -318,7 +318,6 @@ bool gatt_is_srv_chg_ind_pending(tGATT_TCB* p_tcb) {
 *
 ******************************************************************************/
tGATTS_SRV_CHG* gatt_is_bda_in_the_srv_chg_clt_list(const RawAddress& bda) {
  tGATTS_SRV_CHG* p_buf = NULL;

  VLOG(1) << __func__ << ": " << bda;

@@ -330,11 +329,11 @@ tGATTS_SRV_CHG* gatt_is_bda_in_the_srv_chg_clt_list(const RawAddress& bda) {
    tGATTS_SRV_CHG* p_buf = (tGATTS_SRV_CHG*)list_node(node);
    if (bda == p_buf->bda) {
      VLOG(1) << "bda is in the srv chg clt list";
      break;
      return p_buf;
    }
  }

  return p_buf;
  return NULL;
}

/*******************************************************************************