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

Commit 88a113df authored by Chienyuan's avatar Chienyuan Committed by Chienyuan Huang
Browse files

gd: Do not send scan disable command if not enabled

Tag: #gd-refactor
Bug: 188926539
Test: gd/cert/run
Test: bluetooth_test_gd
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I45daa89f8322b54c468ad6a2738edadd2c1cabee
parent 2e72f177
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -589,6 +589,10 @@ struct LeScanningManager::impl : public bluetooth::hci::LeAddressManagerCallback
  }

  void stop_scan() {
    if (!is_scanning_) {
      LOG_INFO("Scanning already stopped, return!");
      return;
    }
    is_scanning_ = false;

    switch (api_type_) {