diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2013-06-01 10:59:29 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2013-06-01 10:59:29 -0700 |
commit | 05caa2a3de32e54562d1ec3031f73ef5392cfb40 (patch) | |
tree | e057d522dfcef945018449b21770b73d4816649b /services | |
parent | 0161d229fdbd8407f5b8b783ffa02b145b0cef8e (diff) | |
download | frameworks_base-05caa2a3de32e54562d1ec3031f73ef5392cfb40.zip frameworks_base-05caa2a3de32e54562d1ec3031f73ef5392cfb40.tar.gz frameworks_base-05caa2a3de32e54562d1ec3031f73ef5392cfb40.tar.bz2 |
Apply scan-always setting to initial wifi state.
Otherwise there's nothing to kick us into scanable modes unless
the user toggles wifi.
bug:9217455
Change-Id: I6460305e3f299646433546598412f817579cc805
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/wifi/WifiController.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/java/com/android/server/wifi/WifiController.java b/services/java/com/android/server/wifi/WifiController.java index 228fabf..87b4394 100644 --- a/services/java/com/android/server/wifi/WifiController.java +++ b/services/java/com/android/server/wifi/WifiController.java @@ -150,7 +150,11 @@ class WifiController extends StateMachine { addState(mStaDisabledWithScanState, mDefaultState); addState(mApEnabledState, mDefaultState); addState(mEcmState, mDefaultState); - setInitialState(mApStaDisabledState); + if (mSettingsStore.isScanAlwaysAvailable()) { + setInitialState(mStaDisabledWithScanState); + } else { + setInitialState(mApStaDisabledState); + } setLogRecSize(100); setLogOnlyTransitions(false); |