Standardize on a single definition of auth_alg bitfield values
This commit is contained in:
parent
70f8cc8ec8
commit
abd9fafab6
14 changed files with 48 additions and 67 deletions
|
@ -1148,10 +1148,10 @@ wpa_driver_bsd_set_auth_alg(void *priv, int auth_alg)
|
|||
struct wpa_driver_bsd_data *drv = priv;
|
||||
int authmode;
|
||||
|
||||
if ((auth_alg & AUTH_ALG_OPEN_SYSTEM) &&
|
||||
(auth_alg & AUTH_ALG_SHARED_KEY))
|
||||
if ((auth_alg & WPA_AUTH_ALG_OPEN) &&
|
||||
(auth_alg & WPA_AUTH_ALG_SHARED))
|
||||
authmode = IEEE80211_AUTH_AUTO;
|
||||
else if (auth_alg & AUTH_ALG_SHARED_KEY)
|
||||
else if (auth_alg & WPA_AUTH_ALG_SHARED)
|
||||
authmode = IEEE80211_AUTH_SHARED;
|
||||
else
|
||||
authmode = IEEE80211_AUTH_OPEN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue