summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehdi Alizadeh2017-08-10 20:32:26 -0500
committerMehdi Alizadeh2017-09-01 15:14:26 -0500
commitc9cee96d62dd2d91d0cff2c55e5f1ee8de96b1ed (patch)
tree5a63d4205696ba8bcf273d011d3514aac213de3b
parent94abf86afd8ff688b2bc871b0e97820b0f6ace31 (diff)
downloadsystem-connectivity-wificond-c9cee96d62dd2d91d0cff2c55e5f1ee8de96b1ed.tar.gz
system-connectivity-wificond-c9cee96d62dd2d91d0cff2c55e5f1ee8de96b1ed.tar.xz
system-connectivity-wificond-c9cee96d62dd2d91d0cff2c55e5f1ee8de96b1ed.zip
Count failures on fallback to netlink for pno metrics
Call OnPnoScanFailed callback if failed to fallback to netlink pno Bug: 32842314 Test: runtests.sh Change-Id: I6aab3c7d95ee0cfd7adc4f5519fcd80caab60759
-rw-r--r--scanning/scanner_impl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scanning/scanner_impl.cpp b/scanning/scanner_impl.cpp
index 0f6ab52..e09c7a1 100644
--- a/scanning/scanner_impl.cpp
+++ b/scanning/scanner_impl.cpp
@@ -551,6 +551,9 @@ void ScannerImpl::OnOffloadError(
551 success = StartPnoScanDefault(pno_settings_); 551 success = StartPnoScanDefault(pno_settings_);
552 if (success) { 552 if (success) {
553 LOG(INFO) << "Pno scans restarted"; 553 LOG(INFO) << "Pno scans restarted";
554 } else {
555 LOG(ERROR) << "Unable to fall back to netlink pno scan";
556 pno_scan_event_handler_->OnPnoScanFailed();
554 } 557 }
555} 558}
556 559