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

Commit 0d70978e authored by Chris Manton's avatar Chris Manton
Browse files

[1/19] get_btm_client_interface().db.BTM_InqDbFirst

Bug: 343772702
Test: m .
Flag: EXEMPT, Mechanical Refactor

Change-Id: I0dbdc22647c10cc0f231ecf633750b1df1d47daa
parent 7533933b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@
#include "stack/gatt/gatt_int.h"
#include "stack/include/bt_types.h"
#include "stack/include/btm_ble_sec_api.h"
#include "stack/include/btm_client_interface.h"

using base::Closure;
using bluetooth::Uuid;
@@ -1446,8 +1447,9 @@ class CsisClientImpl : public CsisClient {

  void CheckForGroupInInqDb(const std::shared_ptr<CsisGroup>& csis_group) {
    // Check if last inquiry already found devices with RSI matching this group
    for (tBTM_INQ_INFO* inq_ent = BTM_InqDbFirst(); inq_ent != nullptr;
         inq_ent = BTM_InqDbNext(inq_ent)) {
    for (tBTM_INQ_INFO* inq_ent =
             get_btm_client_interface().db.BTM_InqDbFirst();
         inq_ent != nullptr; inq_ent = BTM_InqDbNext(inq_ent)) {
      RawAddress rsi = inq_ent->results.ble_ad_rsi;
      if (!csis_group->IsRsiMatching(rsi)) continue;