From: Jouni Malinen Date: Wed, 27 Feb 2013 13:59:55 +0000 (+0200) Subject: wpa_cli: Increase receive buffer from 2048 to 4096 bytes X-Git-Tag: aosp-kk-from-upstream~531 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aec309c407bab60379392916a48683c98a03b447;p=thirdparty%2Fhostap.git wpa_cli: Increase receive buffer from 2048 to 4096 bytes wpa_supplicant uses 4096 byte buffer for control interface responses, so wpa_cli should do the same to avoid truncating responses unnecessarily. Signed-hostap: Jouni Malinen --- diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index 861f9c966..133a0771c 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -400,7 +400,7 @@ static void wpa_cli_msg_cb(char *msg, size_t len) static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd, int print) { - char buf[2048]; + char buf[4096]; size_t len; int ret;