OSDN Git Service

Identify external scan result notifications
authorNingyuan Wang <nywang@google.com>
Mon, 20 Mar 2017 16:24:58 +0000 (09:24 -0700)
committerNingyuan Wang <nywang@google.com>
Mon, 20 Mar 2017 16:33:32 +0000 (09:33 -0700)
Bug: 36417455
Test: compile, unit tests, manual test

Change-Id: I5b9f93015e1e51c49487f602bf109bdc158bd447

scanning/scanner_impl.cpp

index 64be3bc..ea56e74 100644 (file)
@@ -325,7 +325,11 @@ void ScannerImpl::OnScanResultsReady(
     bool aborted,
     vector<vector<uint8_t>>& ssids,
     vector<uint32_t>& frequencies) {
-  LOG(INFO) << "Received scan result notification from kernel.";
+  if (scan_started_) {
+    LOG(INFO) << "Received scan result notification from kernel.";
+  } else {
+    LOG(INFO) << "Received external scan result notification from kernel.";
+  }
   scan_started_ = false;
   if (scan_event_handler_ != nullptr) {
     // TODO: Pass other parameters back once we find framework needs them.