From a8f2f72da8693418f867de9c904eb250b7aae4ff Mon Sep 17 00:00:00 2001 From: Chung-yih Wang Date: Fri, 2 Oct 2009 16:06:22 +0800 Subject: [PATCH] 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. --- src/com/android/settings/wifi/AccessPointState.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/settings/wifi/AccessPointState.java b/src/com/android/settings/wifi/AccessPointState.java index 4839676267b..5aefa557b27 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, 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)){