diff options
author | Lior David <qca_liord@qca.qualcomm.com> | 2016-01-16 18:57:54 +0200 |
---|---|---|
committer | Hamad Kadmany <hkadmany@codeaurora.org> | 2016-08-25 14:50:14 +0300 |
commit | ed615fcb50b78c8921b0dff7b54a50f7dd754500 (patch) | |
tree | 990e2e006982c7d003444ca30d81afa12ad1b760 | |
parent | 2e0692fa2acf4b8851b7bcd9564683cb2759b9a8 (diff) | |
download | android_external_wpa_supplicant_8-ed615fcb50b78c8921b0dff7b54a50f7dd754500.tar.gz android_external_wpa_supplicant_8-ed615fcb50b78c8921b0dff7b54a50f7dd754500.tar.bz2 android_external_wpa_supplicant_8-ed615fcb50b78c8921b0dff7b54a50f7dd754500.zip |
wpa_supplicant: Configurable EAP fragment size in AP mode
In wpa_supplicant AP mode, allow configuration of the EAP fragment size
using the fragment_size member of network block (wpa_ssid), similar to
the fragment_size in hostapd configuration. bss->fragment_size default
value of 0 is treated specially in some EAP code paths (such as MTU
initialization in eap_pwd_init). In order to preserve the existing
behavior, bss->fragment_size will only be set if the network block
specified a value different from the default which is
DEFAULT_FRAGMENT_SIZE(1398) bytes.
Change-Id: Id9b2361ee00b9d54c13c75d2446583edff867ade
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Git-commit: b94fff1d93e894b55656dea1a833b33b93e8c4f0
Git-repo: git://w1.fi/srv/git/hostap.git
CRs-Fixed: 1059345
-rw-r--r-- | wpa_supplicant/ap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index 803ff296..99d3cc35 100644 --- a/wpa_supplicant/ap.c +++ b/wpa_supplicant/ap.c @@ -446,6 +446,8 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s, os_memcpy(bss->uuid, wpa_s->conf->uuid, WPS_UUID_LEN); os_memcpy(bss->os_version, wpa_s->conf->os_version, 4); bss->pbc_in_m1 = wpa_s->conf->pbc_in_m1; + if (ssid->eap.fragment_size != DEFAULT_FRAGMENT_SIZE) + bss->fragment_size = ssid->eap.fragment_size; no_wps: #endif /* CONFIG_WPS */ |