DPP: Increase hostapd_cli buffer limits
This is needed for DPP events/commands. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
44d6b272cf
commit
0c7cf1f508
1 changed files with 2 additions and 2 deletions
|
@ -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[])
|
static int hostapd_cli_cmd_set(struct wpa_ctrl *ctrl, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char cmd[256];
|
char cmd[2048];
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
|
@ -1610,7 +1610,7 @@ static void hostapd_cli_recv_pending(struct wpa_ctrl *ctrl, int in_read,
|
||||||
if (ctrl_conn == NULL)
|
if (ctrl_conn == NULL)
|
||||||
return;
|
return;
|
||||||
while (wpa_ctrl_pending(ctrl)) {
|
while (wpa_ctrl_pending(ctrl)) {
|
||||||
char buf[256];
|
char buf[4096];
|
||||||
size_t len = sizeof(buf) - 1;
|
size_t len = sizeof(buf) - 1;
|
||||||
if (wpa_ctrl_recv(ctrl, buf, &len) == 0) {
|
if (wpa_ctrl_recv(ctrl, buf, &len) == 0) {
|
||||||
buf[len] = '\0';
|
buf[len] = '\0';
|
||||||
|
|
Loading…
Reference in a new issue