]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Increase receive buffer from 2048 to 4096 bytes
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 27 Feb 2013 13:59:55 +0000 (15:59 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 27 Feb 2013 13:59:55 +0000 (15:59 +0200)
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 <jouni@qca.qualcomm.com>

wpa_supplicant/wpa_cli.c

index 861f9c966ebd9e527ba24f5fd39c35086221fd1c..133a0771c621666d9c0e19b104cf40f368d6ee3b 100644 (file)
@@ -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;