[PATCH 1/2] ctrl_iface_unix: Increase global ctrl receive buffer size

Andreas Tobler <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <[email protected]>
Right now the maximum size of blobs to install is limited to 4k by
the global control receive buffer. To be able to install bigger blobs,
bump this receive buffer to 8k. This satisfies our case where we
concatenate several ca-certs into one blob.

Signed-off-by: Andreas Tobler <[email protected]>
---
 wpa_supplicant/ctrl_iface_unix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/ctrl_iface_unix.c b/wpa_supplicant/ctrl_iface_unix.c
index 71fe7ed6b..171794de9 100644
--- a/wpa_supplicant/ctrl_iface_unix.c
+++ b/wpa_supplicant/ctrl_iface_unix.c
@@ -1046,7 +1046,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[4096];
+	char buf[8192];
 	int res;
 	struct sockaddr_storage from;
 	socklen_t fromlen = sizeof(from);
-- 
2.25.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.