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

Commit a17ecae8 authored by Hsin-chen Chuang's avatar Hsin-chen Chuang
Browse files

floss: Avoid reading DIS info when no GATT connection

Bug: 279133545
Tag: #floss
Test: CQ and CrOS test bluetooth_AdapterLEHealth
Change-Id: I2903dffaf4c690dac33af9c29cf10667cb5172d3
parent 87cecc14
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1490,7 +1490,8 @@ void bta_dm_search_cmpl() {
  bta_dm_search_cb.gatt_disc_active = false;

#if TARGET_FLOSS
  if (DIS_ReadDISInfo(bta_dm_search_cb.peer_bdaddr, bta_dm_read_dis_cmpl,
  if (conn_id != GATT_INVALID_CONN_ID &&
      DIS_ReadDISInfo(bta_dm_search_cb.peer_bdaddr, bta_dm_read_dis_cmpl,
                      DIS_ATTR_PNP_ID_BIT)) {
    return;
  }