OSDN Git Service

Add the auth_alg field back.
authorChung-yih Wang <cywang@google.com>
Fri, 2 Oct 2009 08:06:22 +0000 (16:06 +0800)
committerChung-yih Wang <cywang@google.com>
Fri, 2 Oct 2009 08:09:15 +0000 (16:09 +0800)
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

index 4839676..5aefa55 100644 (file)
@@ -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)){