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.
This commit is contained in:
Chung-yih Wang
2009-10-02 16:06:22 +08:00
parent 6de9fb390b
commit a8f2f72da8

View 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)){