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

Commit 02781b44 authored by Chris Manton's avatar Chris Manton
Browse files

Re-log stack::btm::inq::btm_process_inq_results

Bug: 262654461
Test: gd/cert/run
Tag: #refactor

Change-Id: I4d94ce76a2cf36fb4d30638793c5e0ee3073dbd4
parent 3961f19a
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -1107,12 +1107,14 @@ void btm_process_inq_results(const uint8_t* p, uint8_t hci_evt_len,
  uint16_t clock_offset;
  const uint8_t* p_eir_data = NULL;

#if (BTM_INQ_DEBUG == TRUE)
  BTM_TRACE_DEBUG("btm_process_inq_results inq_active:0x%x state:%d",
  LOG_DEBUG("Received inquiry result inq_active:0x%x state:%d",
            btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state);
#endif

  /* Only process the results if the BR inquiry is still active */
  if (!(p_inq->inq_active & BTM_BR_INQ_ACTIVE_MASK)) return;
  if (!(p_inq->inq_active & BTM_BR_INQ_ACTIVE_MASK)) {
    LOG_INFO("Inquiry is inactive so dropping inquiry result");
    return;
  }

  STREAM_TO_UINT8(num_resp, p);

@@ -1256,7 +1258,7 @@ void btm_process_inq_results(const uint8_t* p, uint8_t hci_evt_len,
        (p_inq_results_cb)((tBTM_INQ_RESULTS*)p_cur, p_eir_data,
                           HCI_EXT_INQ_RESPONSE_LEN);
      } else {
        BTM_TRACE_DEBUG("No callback is registered");
        LOG_WARN("No callback is registered for inquiry result");
      }
    }
  }