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

Commit 8812ef46 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

am: 6f90f5b8

Change-Id: I2f74d6404a18de82d4168532c1d161828d8af911
parents e2cb9cb7 6f90f5b8
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;