MFC: add eapol_version config parameter
Approved by: re (hrs)
This commit is contained in:
parent
3c67ff929d
commit
62bdb6710c
@ -29,6 +29,7 @@
|
||||
#include "sha1.h"
|
||||
#include "eap.h"
|
||||
#include "radius_client.h"
|
||||
#include "ieee802_1x.h" /* XXX for EAPOL_VERSION */
|
||||
|
||||
|
||||
static struct hostapd_config *hostapd_config_defaults(void)
|
||||
@ -60,6 +61,7 @@ static struct hostapd_config *hostapd_config_defaults(void)
|
||||
conf->logger_stdout = (unsigned int) -1;
|
||||
|
||||
conf->auth_algs = HOSTAPD_AUTH_OPEN | HOSTAPD_AUTH_SHARED_KEY;
|
||||
conf->eapol_version = EAPOL_VERSION; /* NB: default version */
|
||||
|
||||
conf->wpa_group_rekey = 600;
|
||||
conf->wpa_gmk_rekey = 86400;
|
||||
@ -855,6 +857,17 @@ struct hostapd_config * hostapd_config_read(const char *fname)
|
||||
}
|
||||
} else if (strcmp(buf, "eapol_key_index_workaround") == 0) {
|
||||
conf->eapol_key_index_workaround = atoi(pos);
|
||||
} else if (strcmp(buf, "eapol_version") == 0) {
|
||||
conf->eapol_version = atoi(pos);
|
||||
if (conf->eapol_version < 1 ||
|
||||
conf->eapol_version > 2) {
|
||||
printf("Line %d: invalid EAPOL "
|
||||
"version (%d): '%s'.\n",
|
||||
line, conf->eapol_version, pos);
|
||||
errors++;
|
||||
} else
|
||||
wpa_printf(MSG_DEBUG, "eapol_version=%d",
|
||||
conf->eapol_version);
|
||||
#ifdef CONFIG_IAPP
|
||||
} else if (strcmp(buf, "iapp_interface") == 0) {
|
||||
conf->ieee802_11f = 1;
|
||||
|
@ -73,6 +73,7 @@ struct hostapd_config {
|
||||
* EAP Request-Identity */
|
||||
size_t eap_req_id_text_len;
|
||||
int eapol_key_index_workaround;
|
||||
int eapol_version;
|
||||
|
||||
size_t default_wep_key_len;
|
||||
int individual_wep_key_len;
|
||||
|
@ -106,6 +106,14 @@ auth_algs=3
|
||||
# Require IEEE 802.1X authorization
|
||||
#ieee8021x=1
|
||||
|
||||
# IEEE 802.1X/EAPOL version
|
||||
# hostapd is implemented based on IEEE Std 802.1X-2004 which defines EAPOL
|
||||
# version 2. However, there are some clients that do not handle
|
||||
# the new version number correctly (they seem to drop the frames completely).
|
||||
# In order to make hostapd interoperate with these clients, the version number
|
||||
# can be set to the older version (1) with this configuration value.
|
||||
#eapol_version=2
|
||||
|
||||
# Optional displayable message sent with EAP Request-Identity. The first \0
|
||||
# in this string will be converted to ASCII-0 (nul). This can be used to
|
||||
# separate network info (comma separated list of attribute=value pairs); see,
|
||||
|
Loading…
x
Reference in New Issue
Block a user