From 98d17f09680a687cdba787824259ff650691560f Mon Sep 17 00:00:00 2001 From: Ningyuan Wang Date: Mon, 20 Mar 2017 09:24:58 -0700 Subject: [PATCH] Identify external scan result notifications Bug: 36417455 Test: compile, unit tests, manual test Change-Id: I5b9f93015e1e51c49487f602bf109bdc158bd447 --- scanning/scanner_impl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scanning/scanner_impl.cpp b/scanning/scanner_impl.cpp index 64be3bc..ea56e74 100644 --- a/scanning/scanner_impl.cpp +++ b/scanning/scanner_impl.cpp @@ -325,7 +325,11 @@ void ScannerImpl::OnScanResultsReady( bool aborted, vector>& ssids, vector& 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. -- 2.11.0