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

Commit 2e76c53f authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Merge "Clear state mask when scan stopped"

am: 8ddcccf5

Change-Id: I628ce848b48928f2da2b04befbaaf7d8b021d35b
parents 1165c0db 8ddcccf5
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;