summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorDavid Su <dysu@google.com>2019-08-14 15:55:17 -0700
committerDavid Su <dysu@google.com>2019-09-09 10:58:19 -0700
commit154bb06425f73c9d3be253de119161942e7ef062 (patch)
tree40c3bf76c9f9abd8d8e20872e45ef8c19e4f3ad2 /service
parentb5632ef186e192c87432f1ec810b7907f272411a (diff)
WifiController: Only go to scan mode if we are NOT in airplane mode
Code behavior doesn't match comment. Bug: 139157226 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I1c7e3ca81be231de7e4064d9d1ca2fa3d35b31ed
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/ActiveModeWarden.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/ActiveModeWarden.java b/service/java/com/android/server/wifi/ActiveModeWarden.java
index 64ff941c2..4f1a00371 100644
--- a/service/java/com/android/server/wifi/ActiveModeWarden.java
+++ b/service/java/com/android/server/wifi/ActiveModeWarden.java
@@ -673,7 +673,7 @@ public class ActiveModeWarden {
transitionTo(mStaEnabledState);
} else if (checkScanOnlyModeAvailable()) {
// only go to scan mode if we aren't in airplane mode
- if (mSettingsStore.isAirplaneModeOn()) {
+ if (!mSettingsStore.isAirplaneModeOn()) {
transitionTo(mStaDisabledWithScanState);
}
}