aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-07-19 02:28:53 (GMT)
committerJouni Malinen <j@w1.fi>2010-07-21 05:56:10 (GMT)
commit7f6ec672ea429cc02bbe5532f3cc9e8892adb00c (patch)
treef5a542d82da9ea32d94d58a4ec707787d025de02 /hostapd
parentf3a3e6987e2201e17cdb244e166b62325f99eb7d (diff)
downloadhostap-7f6ec672ea429cc02bbe5532f3cc9e8892adb00c.zip
hostap-7f6ec672ea429cc02bbe5532f3cc9e8892adb00c.tar.gz
hostap-7f6ec672ea429cc02bbe5532f3cc9e8892adb00c.tar.bz2
EAP server: Add support for configuring fragment size
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
-rw-r--r--hostapd/hostapd.conf3
2 files changed, 5 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 8916b03..fc933f5 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -1313,6 +1313,8 @@ struct hostapd_config * hostapd_config_read(const char *fname)
} else if (os_strcmp(buf, "dh_file") == 0) {
os_free(bss->dh_file);
bss->dh_file = os_strdup(pos);
+ } else if (os_strcmp(buf, "fragment_size") == 0) {
+ bss->fragment_size = atoi(pos);
#ifdef EAP_SERVER_FAST
} else if (os_strcmp(buf, "pac_opaque_encr_key") == 0) {
os_free(bss->pac_opaque_encr_key);
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index 041b947..e948c20 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -504,6 +504,9 @@ eap_server=0
# "openssl dhparam -out /etc/hostapd.dh.pem 1024"
#dh_file=/etc/hostapd.dh.pem
+# Fragment size for EAP methods
+#fragment_size=1400
+
# Configuration data for EAP-SIM database/authentication gateway interface.
# This is a text string in implementation specific format. The example
# implementation in eap_sim_db.c uses this as the UNIX domain socket name for