diag: router: Increase receive buffer sizes

Increased buffer size to accommodate for masks in command packets.

Signed-off-by: Eyal Ilsar <eilsar@codeaurora.org>
[bjorn: Extracted from another patch]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
Eyal Ilsar 2018-01-04 12:19:10 +02:00 committed by Bjorn Andersson
parent d2d6ff67af
commit 11b7deecf7
5 changed files with 8 additions and 5 deletions

2
diag.c
View File

@ -45,7 +45,7 @@
#include "util.h"
#include "watch.h"
#define APPS_BUF_SIZE 4096
#define APPS_BUF_SIZE 16384
struct list_head diag_cmds = LIST_INIT(diag_cmds);
struct list_head diag_clients = LIST_INIT(diag_clients);

View File

@ -37,7 +37,7 @@
#include "peripheral.h"
#include "util.h"
#define APPS_BUF_SIZE 4096
#define APPS_BUF_SIZE 16384
struct diag_mask_info {
void *ptr;

View File

@ -47,7 +47,7 @@
#include "hdlc.h"
#include "watch.h"
#define APPS_BUF_SIZE 4096
#define APPS_BUF_SIZE 16384
static int diag_sock_recv(int fd, void* data);

2
uart.c
View File

@ -40,7 +40,7 @@
#include "hdlc.h"
#include "watch.h"
#define APPS_BUF_SIZE 4096
#define APPS_BUF_SIZE 16384
static unsigned int check_baudrate(unsigned int baudrate)
{

5
usb.c
View File

@ -62,7 +62,10 @@
#define cpu_to_le16(x) (x)
#define cpu_to_le32(x) (x)
#define APPS_BUF_SIZE 4096
#define cpu_to_le16(x) (x)
#define cpu_to_le32(x) (x)
#define APPS_BUF_SIZE 16384
struct func_desc {
struct usb_interface_descriptor intf;