summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2009-10-02 16:06:22 +0800
committerChung-yih Wang <cywang@google.com>2009-10-02 16:09:15 +0800
commita8f2f72da8693418f867de9c904eb250b7aae4ff (patch)
treec37022cf8926d565c48425fd1811e099150a86e4 /src/com
parent6de9fb390b9eab0dbaf9709db5149eefc18724da (diff)
downloadpackages_apps_settings-a8f2f72da8693418f867de9c904eb250b7aae4ff.zip
packages_apps_settings-a8f2f72da8693418f867de9c904eb250b7aae4ff.tar.gz
packages_apps_settings-a8f2f72da8693418f867de9c904eb250b7aae4ff.tar.bz2
Add the auth_alg field back.
This change is to fix the issue http://b/issue?id=2161539. The auth_alg field is required for auth. type 'SHARED' with WEP mode, it will not be automatically selected as claimed. The change has been verified on Linksys WRT54G.
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/settings/wifi/AccessPointState.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/wifi/AccessPointState.java b/src/com/android/settings/wifi/AccessPointState.java
index 4839676..5aefa55 100644
--- a/src/com/android/settings/wifi/AccessPointState.java
+++ b/src/com/android/settings/wifi/AccessPointState.java
@@ -546,6 +546,8 @@ public final class AccessPointState implements Comparable<AccessPointState>, Par
: mPassword;
}
}
+ config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN);
+ config.allowedAuthAlgorithms.set(AuthAlgorithm.SHARED);
config.allowedKeyManagement.set(KeyMgmt.NONE);
config.wepTxKeyIndex = 0;
} else if (security.equals(PSK)){