Add support for wifi verification before connect

Change-Id: Ie1fb9c2fad4f75985077236eab61c296314f4fe4
This commit is contained in:
Irfan Sheriff
2012-02-14 09:26:07 -08:00
parent 49cd8d5481
commit 09a9b38fbc
3 changed files with 14 additions and 8 deletions

View File

@@ -565,9 +565,10 @@ public class WifiSettings extends SettingsPreferenceFragment
//network state change events so the apps dont have to worry about
//ignoring supplicant state change when network is connected
//to get more fine grained information.
if (!mConnected.get()) {
updateConnectionState(WifiInfo.getDetailedStateOf((SupplicantState)
intent.getParcelableExtra(WifiManager.EXTRA_NEW_STATE)));
SupplicantState state = (SupplicantState) intent.getParcelableExtra(
WifiManager.EXTRA_NEW_STATE);
if (!mConnected.get() && SupplicantState.isHandshakeState(state)) {
updateConnectionState(WifiInfo.getDetailedStateOf(state));
}
if (mInXlSetupWizard) {