Initialize network state on start

Bug: 2542613
Change-Id: I5b16b2dc866c7f25bc61f1a04cf5fa9938ec2c3e
This commit is contained in:
Irfan Sheriff
2010-12-14 17:45:26 -08:00
parent 320a4beda3
commit 3a65de795d

View File

@ -2184,6 +2184,8 @@ public class WifiStateMachine extends HierarchicalStateMachine {
setCountryCode();
/* set frequency band of operation */
setFrequencyBand();
/* initialize network state */
setNetworkDetailedState(DetailedState.DISCONNECTED);
if (mIsScanMode) {
WifiNative.setScanResultHandlingCommand(SCAN_ONLY_MODE);