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

Commit 8c78b25c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Stop inquiry when inquiry cancelled" into sc-dev am: 617ae8ce am: ad62b8c5

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/15534527

Change-Id: Ie0ee87ea713cd4a49a2f61c8e127b20f383af40f
parents abea48a7 ad62b8c5
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -534,8 +534,10 @@ tBTM_STATUS BTM_StartInquiry(tBTM_INQ_RESULTS_CB* p_results_cb,


  if (controller_get_interface()->supports_ble()) {
  if (controller_get_interface()->supports_ble()) {
    btm_ble_start_inquiry(p_inq->inqparms.duration);
    btm_ble_start_inquiry(p_inq->inqparms.duration);
  }
  } else {
    LOG_WARN("Trying to do LE scan on a non-LE adapter");
    p_inq->inqparms.mode &= ~BTM_BLE_INQUIRY_MASK;
    p_inq->inqparms.mode &= ~BTM_BLE_INQUIRY_MASK;
  }


  btm_acl_update_inquiry_status(BTM_INQUIRY_STARTED);
  btm_acl_update_inquiry_status(BTM_INQUIRY_STARTED);