aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-07-02 09:36:18 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-02 06:35:00 (GMT)
commit0c7cf1f508bc1b590a9defb7589376a481a7715b (patch)
tree493ed1122c6a3c4f1b3d23393a8070d698020c4d /hostapd/hostapd_cli.c
parent44d6b272cf92b7d3da08270e3d7a8cd9a1f2f867 (diff)
downloadhostap-0c7cf1f508bc1b590a9defb7589376a481a7715b.zip
hostap-0c7cf1f508bc1b590a9defb7589376a481a7715b.tar.gz
hostap-0c7cf1f508bc1b590a9defb7589376a481a7715b.tar.bz2
DPP: Increase hostapd_cli buffer limits
This is needed for DPP events/commands. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index f8d1eda..5d36a07 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -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';