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
This commit is contained in:
@@ -150,7 +150,11 @@ class WifiController extends StateMachine {
|
|||||||
addState(mStaDisabledWithScanState, mDefaultState);
|
addState(mStaDisabledWithScanState, mDefaultState);
|
||||||
addState(mApEnabledState, mDefaultState);
|
addState(mApEnabledState, mDefaultState);
|
||||||
addState(mEcmState, mDefaultState);
|
addState(mEcmState, mDefaultState);
|
||||||
setInitialState(mApStaDisabledState);
|
if (mSettingsStore.isScanAlwaysAvailable()) {
|
||||||
|
setInitialState(mStaDisabledWithScanState);
|
||||||
|
} else {
|
||||||
|
setInitialState(mApStaDisabledState);
|
||||||
|
}
|
||||||
setLogRecSize(100);
|
setLogRecSize(100);
|
||||||
setLogOnlyTransitions(false);
|
setLogOnlyTransitions(false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user