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

Commit a4e9bb6b authored by Chris Manton's avatar Chris Manton
Browse files

btm: Indicate scan start/stop

Toward loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Icf1a6f564dc07bf2a530b663f69dcd019bca8903
parent 40aea772
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -25,7 +25,8 @@
 *
 ******************************************************************************/

#include <log/log.h>
#define LOG_TAG "bluetooth"

#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
@@ -33,6 +34,7 @@

#include "common/time_util.h"
#include "device/include/controller.h"
#include "osi/include/log.h"
#include "osi/include/osi.h"

#include "advertise_data_parser.h"
@@ -425,6 +427,8 @@ void BTM_CancelInquiry(void) {
    return;
  }

  btm_cb.history_->Push("%-32s", "Inquiry scan stopped");

  tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars;
  BTM_TRACE_API("BTM_CancelInquiry called");

@@ -505,6 +509,8 @@ tBTM_STATUS BTM_StartInquiry(tBTM_INQ_RESULTS_CB* p_results_cb,
    return BTM_WRONG_MODE;
  }

  btm_cb.history_->Push("%-32s", "Inquiry scan started");

  /* Save the inquiry parameters to be used upon the completion of
   * setting/clearing the inquiry filter */
  p_inq->inqparms = {};