]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Increase hostapd_cli buffer limits
authorJouni Malinen <jouni@qca.qualcomm.com>
Sun, 2 Jul 2017 09:36:18 +0000 (12:36 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 2 Jul 2017 06:35:00 +0000 (09:35 +0300)
This is needed for DPP events/commands.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
hostapd/hostapd_cli.c

index f8d1eda8fe59f0b4d633caa99ad6eb13b7fc682e..5d36a075f553f58a341c827e027a3fa80f993048 100644 (file)
@@ -1024,7 +1024,7 @@ static char ** hostapd_complete_interface(const char *str, int pos)
 
 static int hostapd_cli_cmd_set(struct wpa_ctrl *ctrl, int argc, char *argv[])
 {
-       char cmd[256];
+       char cmd[2048];
        int res;
 
        if (argc != 2) {
@@ -1610,7 +1610,7 @@ static void hostapd_cli_recv_pending(struct wpa_ctrl *ctrl, int in_read,
        if (ctrl_conn == NULL)
                return;
        while (wpa_ctrl_pending(ctrl)) {
-               char buf[256];
+               char buf[4096];
                size_t len = sizeof(buf) - 1;
                if (wpa_ctrl_recv(ctrl, buf, &len) == 0) {
                        buf[len] = '\0';