sme: Try all authentication algorithms when the first one fails
When passing several authentication algorithms through auth_alg, we should try all of them when the first one fails. The wext driver goes through the connect nl80211 command and the retries are then handled by the kernel. The nl80211 doesn't and we have to handle that from userspace. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
cb30b297bd
commit
cb1583f64b
2 changed files with 27 additions and 5 deletions
|
@ -2513,10 +2513,6 @@ retry:
|
|||
wpa_hexdump(MSG_DEBUG, " * IEs", params->ie, params->ie_len);
|
||||
if (params->ie)
|
||||
NLA_PUT(msg, NL80211_ATTR_IE, params->ie_len, params->ie);
|
||||
/*
|
||||
* TODO: if multiple auth_alg options enabled, try them one by one if
|
||||
* the AP rejects authentication due to unknown auth alg
|
||||
*/
|
||||
if (params->auth_alg & WPA_AUTH_ALG_OPEN)
|
||||
type = NL80211_AUTHTYPE_OPEN_SYSTEM;
|
||||
else if (params->auth_alg & WPA_AUTH_ALG_SHARED)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue