NFC: Increase wpa_cli command buffer size
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 15 Feb 2013 15:07:28 +0000 (17:07 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 27 Apr 2013 19:14:45 +0000 (22:14 +0300)
NFC connection handover messages may be longer than 100 octets, so
increase wpa_cli buffer size to allow longer messages to be reported.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/wpa_cli.c

index 87d7928..e700d7e 100644 (file)
@@ -467,7 +467,7 @@ fail:
 static int wpa_cli_cmd(struct wpa_ctrl *ctrl, const char *cmd, int min_args,
                       int argc, char *argv[])
 {
-       char buf[256];
+       char buf[4096];
        if (argc < min_args) {
                printf("Invalid %s command - at least %d argument%s "
                       "required.\n", cmd, min_args,