aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>2017-10-17 18:37:29 (GMT)
committerJouni Malinen <j@w1.fi>2017-10-21 09:00:57 (GMT)
commitde41b960b687e527239c41ec24d4e431612f446b (patch)
tree943bedcfd3f0d328cff6164601df69603f739ac7
parentf81c1411f308c439ab83d427629f3c1ab8526b10 (diff)
downloadhostap-de41b960b687e527239c41ec24d4e431612f446b.zip
hostap-de41b960b687e527239c41ec24d4e431612f446b.tar.gz
hostap-de41b960b687e527239c41ec24d4e431612f446b.tar.bz2
wpa_supplicant: Increase UDP control interface RX buffer
Seems like some test cases, e.g., ap_wpa2_psk_ext_retry_msg_3c, require larger buffer than 256 bytes. In other case I fail such test cases when run on real HW and using: CONFIG_CTRL_IFACE=udp-remote Increase the RX buffer from 256 to 4096 bytes to match the other control interface cases. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
-rw-r--r--wpa_supplicant/ctrl_iface_udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/ctrl_iface_udp.c b/wpa_supplicant/ctrl_iface_udp.c
index 0dc0937..8a6057a 100644
--- a/wpa_supplicant/ctrl_iface_udp.c
+++ b/wpa_supplicant/ctrl_iface_udp.c
@@ -219,7 +219,7 @@ static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx,
{
struct wpa_supplicant *wpa_s = eloop_ctx;
struct ctrl_iface_priv *priv = sock_ctx;
- char buf[256], *pos;
+ char buf[4096], *pos;
int res;
#ifdef CONFIG_CTRL_IFACE_UDP_IPV6
struct sockaddr_in6 from;
@@ -600,7 +600,7 @@ static void wpa_supplicant_global_ctrl_iface_receive(int sock, void *eloop_ctx,
{
struct wpa_global *global = eloop_ctx;
struct ctrl_iface_global_priv *priv = sock_ctx;
- char buf[256], *pos;
+ char buf[4096], *pos;
int res;
#ifdef CONFIG_CTRL_IFACE_UDP_IPV6
struct sockaddr_in6 from;