summaryrefslogtreecommitdiff
path: root/monitor/control.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-11-04 17:21:22 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-11-04 17:21:22 +0100
commitdc4eb576b6eba6bce9bc7b82e20ae69878de09a1 (patch)
treee6c01c2aa0b3762fee92c0400d732733ee52f361 /monitor/control.c
parent9d573589449e7e92f8e576be03de75d5b438c1a8 (diff)
downloadbluez-dc4eb576b6eba6bce9bc7b82e20ae69878de09a1.tar.gz
monitor: Fix handling of buffer for high speed data frames
Diffstat (limited to 'monitor/control.c')
-rw-r--r--monitor/control.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/monitor/control.c b/monitor/control.c
index 95582a4c4..ae1a7ae56 100644
--- a/monitor/control.c
+++ b/monitor/control.c
@@ -45,10 +45,12 @@
#include "btsnoop.h"
#include "control.h"
+#define MAX_PACKET_SIZE (1486 + 4)
+
struct control_data {
uint16_t channel;
int fd;
- unsigned char buf[HCI_MAX_FRAME_SIZE];
+ unsigned char buf[MAX_PACKET_SIZE];
uint16_t offset;
};
@@ -772,7 +774,7 @@ void control_server(const char *path)
void control_reader(const char *path)
{
- unsigned char buf[HCI_MAX_FRAME_SIZE];
+ unsigned char buf[MAX_PACKET_SIZE];
uint16_t index, opcode, pktlen;
struct timeval tv;