aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_wext.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-03 19:14:40 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-03 19:14:40 (GMT)
commitabd9fafab6498c26f282b4b3cfcbe09ba0a6f837 (patch)
tree1abbbc681aadbe52804697edf88b8d2f0a55be96 /src/drivers/driver_wext.c
parent70f8cc8ec81e46f753ea3b659613d10ff10145a7 (diff)
downloadhostap-abd9fafab6498c26f282b4b3cfcbe09ba0a6f837.zip
hostap-abd9fafab6498c26f282b4b3cfcbe09ba0a6f837.tar.gz
hostap-abd9fafab6498c26f282b4b3cfcbe09ba0a6f837.tar.bz2
Standardize on a single definition of auth_alg bitfield values
Diffstat (limited to 'src/drivers/driver_wext.c')
-rw-r--r--src/drivers/driver_wext.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c
index 210e29b..0fc1c54 100644
--- a/src/drivers/driver_wext.c
+++ b/src/drivers/driver_wext.c
@@ -1907,9 +1907,9 @@ wpa_driver_wext_auth_alg_fallback(struct wpa_driver_wext_data *drv,
if (!drv->use_crypt) {
iwr.u.encoding.flags |= IW_ENCODE_DISABLED;
} else {
- if (params->auth_alg & AUTH_ALG_OPEN_SYSTEM)
+ if (params->auth_alg & WPA_AUTH_ALG_OPEN)
iwr.u.encoding.flags |= IW_ENCODE_OPEN;
- if (params->auth_alg & AUTH_ALG_SHARED_KEY)
+ if (params->auth_alg & WPA_AUTH_ALG_SHARED)
iwr.u.encoding.flags |= IW_ENCODE_RESTRICTED;
}
@@ -2034,11 +2034,11 @@ static int wpa_driver_wext_set_auth_alg(void *priv, int auth_alg)
struct wpa_driver_wext_data *drv = priv;
int algs = 0, res;
- if (auth_alg & AUTH_ALG_OPEN_SYSTEM)
+ if (auth_alg & WPA_AUTH_ALG_OPEN)
algs |= IW_AUTH_ALG_OPEN_SYSTEM;
- if (auth_alg & AUTH_ALG_SHARED_KEY)
+ if (auth_alg & WPA_AUTH_ALG_SHARED)
algs |= IW_AUTH_ALG_SHARED_KEY;
- if (auth_alg & AUTH_ALG_LEAP)
+ if (auth_alg & WPA_AUTH_ALG_LEAP)
algs |= IW_AUTH_ALG_LEAP;
if (algs == 0) {
/* at least one algorithm should be set */