aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-01-23 16:57:15 +0200
committerSteve Kondik <shade@chemlab.org>2014-06-12 14:07:58 -0700
commitb4d3a213ff4da942c1f39757fe0dc2df0725d1fd (patch)
tree880ac947004e05bad05386f3ac3eba236307aa5e
parentd86514ffb1714610f29ecb50b8a9baee2aaa4978 (diff)
downloadandroid_external_wpa_supplicant_8-b4d3a213ff4da942c1f39757fe0dc2df0725d1fd.tar.gz
android_external_wpa_supplicant_8-b4d3a213ff4da942c1f39757fe0dc2df0725d1fd.tar.bz2
android_external_wpa_supplicant_8-b4d3a213ff4da942c1f39757fe0dc2df0725d1fd.zip
Increase global ctrl_iface buffer to same size as per-interface
Since the global ctrl_iface can be used with IFNAME= prefix to send commands to be processed by per-interface code, it should have the same (well, close to same since the prefix takes some space) limits on command length as the per-interface ctrl_iface. Increase the buffer from 256 to 4096 to achieve this. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> Git-commit: 8615bdfac90174c3730ae5e6607b85f8bbec847 Git-repo : git://w1.fi/srv/git/hostap.git Change-Id: I8b5859457b488d83619262e39c41bf8d677b34a0 CRs-fixed: 607171
-rw-r--r--wpa_supplicant/ctrl_iface_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ctrl_iface_unix.c b/wpa_supplicant/ctrl_iface_unix.c
index e35d2c39..8016240c 100644
--- a/wpa_supplicant/ctrl_iface_unix.c
+++ b/wpa_supplicant/ctrl_iface_unix.c
@@ -680,7 +680,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];
+ char buf[4096];
int res;
struct sockaddr_un from;
socklen_t fromlen = sizeof(from);