diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-11-04 17:21:22 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-11-04 17:21:22 +0100 |
commit | dc4eb576b6eba6bce9bc7b82e20ae69878de09a1 (patch) | |
tree | e6c01c2aa0b3762fee92c0400d732733ee52f361 /monitor/control.c | |
parent | 9d573589449e7e92f8e576be03de75d5b438c1a8 (diff) | |
download | bluez-dc4eb576b6eba6bce9bc7b82e20ae69878de09a1.tar.gz |
monitor: Fix handling of buffer for high speed data frames
Diffstat (limited to 'monitor/control.c')
-rw-r--r-- | monitor/control.c | 6 |
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; |