aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-01 19:41:19 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-09 19:18:38 (GMT)
commitc49d3440efabbdefd3a8ffa64db3725fc38aea30 (patch)
tree1131817a52de39e53f5a913b7e826ca1893d8646
parent3fd721aa5990169f2c6d410315d2f8a65b4809f5 (diff)
downloadhostap-06-c49d3440efabbdefd3a8ffa64db3725fc38aea30.zip
hostap-06-c49d3440efabbdefd3a8ffa64db3725fc38aea30.tar.gz
hostap-06-c49d3440efabbdefd3a8ffa64db3725fc38aea30.tar.bz2
nl80211/wext: Hardcode all auth_algs as supported
There does not seem to be a driver interface for fetching auth_algs capability, but this may be used by some external application, so hardcode all auth_algs as supported for now.
-rw-r--r--src/drivers/driver_nl80211.c3
-rw-r--r--src/drivers/driver_wext.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index f274525..9ab6d17 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -1848,6 +1848,9 @@ static int wpa_driver_nl80211_get_range(void *priv)
drv->capa.enc |= WPA_DRIVER_CAPA_ENC_TKIP;
if (range->enc_capa & IW_ENC_CAPA_CIPHER_CCMP)
drv->capa.enc |= WPA_DRIVER_CAPA_ENC_CCMP;
+ drv->capa.auth = WPA_DRIVER_AUTH_OPEN |
+ WPA_DRIVER_AUTH_SHARED |
+ WPA_DRIVER_AUTH_LEAP;
wpa_printf(MSG_DEBUG, " capabilities: key_mgmt 0x%x enc 0x%x",
drv->capa.key_mgmt, drv->capa.enc);
} else {
diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c
index c54a76b..e771d37 100644
--- a/src/drivers/driver_wext.c
+++ b/src/drivers/driver_wext.c
@@ -1616,6 +1616,9 @@ static int wpa_driver_wext_get_range(void *priv)
drv->capa.enc |= WPA_DRIVER_CAPA_ENC_CCMP;
if (range->enc_capa & IW_ENC_CAPA_4WAY_HANDSHAKE)
drv->capa.flags |= WPA_DRIVER_FLAGS_4WAY_HANDSHAKE;
+ drv->capa.auth = WPA_DRIVER_AUTH_OPEN |
+ WPA_DRIVER_AUTH_SHARED |
+ WPA_DRIVER_AUTH_LEAP;
wpa_printf(MSG_DEBUG, " capabilities: key_mgmt 0x%x enc 0x%x "
"flags 0x%x",