aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-11-29 18:33:09 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-04 10:08:56 (GMT)
commit2a5156a66c27dc36b155d0157798a81fe120efc9 (patch)
tree055208e8fad4ba23dede29df2f797cea5b900676 /hostapd/config_file.c
parent19e2b3b6bab817ba87c2cdde91bd1c59c5538b5f (diff)
downloadhostap-2a5156a66c27dc36b155d0157798a81fe120efc9.zip
hostap-2a5156a66c27dc36b155d0157798a81fe120efc9.tar.gz
hostap-2a5156a66c27dc36b155d0157798a81fe120efc9.tar.bz2
ERP: Add optional EAP-Initiate/Re-auth-Start transmission
hostapd can now be configured to transmit EAP-Initiate/Re-auth-Start before EAP-Request/Identity to try to initiate ERP. This is disabled by default and can be enabled with erp_send_reauth_start=1 and optional erp_reauth_start_domain=<domain>. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 79bbba4..76d8964 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2071,6 +2071,11 @@ static int hostapd_config_fill(struct hostapd_config *conf,
(term - bss->eap_req_id_text) - 1);
bss->eap_req_id_text_len--;
}
+ } else if (os_strcmp(buf, "erp_send_reauth_start") == 0) {
+ bss->erp_send_reauth_start = atoi(pos);
+ } else if (os_strcmp(buf, "erp_domain") == 0) {
+ os_free(bss->erp_domain);
+ bss->erp_domain = os_strdup(pos);
} else if (os_strcmp(buf, "wep_key_len_broadcast") == 0) {
bss->default_wep_key_len = atoi(pos);
if (bss->default_wep_key_len > 13) {