aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_bsd.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_bsd.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_bsd.c')
-rw-r--r--src/drivers/driver_bsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index 276588c..317238b 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -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;