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

Commit 6f90f5b8 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Merge "Clear state mask when scan stopped" am: 8ddcccf5

am: 2e76c53f

Change-Id: Ieaf3c1a880572052eaff15d5aa03315cbc19cef8
parents a7595eb5 2e76c53f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2284,6 +2284,11 @@ tBTM_STATUS btm_ble_start_scan(void) {
void btm_ble_stop_scan(void) {
  BTM_TRACE_EVENT("btm_ble_stop_scan ");

  if (btm_cb.ble_ctr_cb.inq_var.scan_type == BTM_BLE_SCAN_MODE_ACTI)
    btm_ble_clear_topology_mask(BTM_BLE_STATE_ACTIVE_SCAN_BIT);
  else
    btm_ble_clear_topology_mask(BTM_BLE_STATE_PASSIVE_SCAN_BIT);

  /* Clear the inquiry callback if set */
  btm_cb.ble_ctr_cb.inq_var.scan_type = BTM_BLE_SCAN_MODE_NONE;