diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-08-12 15:46:32 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-08-13 12:17:24 +0300 |
commit | 0f539bbfa6a4b81a48d3efe69e645a6214891e2d (patch) | |
tree | 42dd625c97a88e53639d1a6e1b03c52f94aea186 /monitor/control.c | |
parent | b4116446cee4384cc70fe884a923c06059e1592d (diff) | |
download | bluez-0f539bbfa6a4b81a48d3efe69e645a6214891e2d.tar.gz |
monitor: Use common maximum packet size definition
Diffstat (limited to 'monitor/control.c')
-rw-r--r-- | monitor/control.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/monitor/control.c b/monitor/control.c index 8ee44310c..36ebcbca5 100644 --- a/monitor/control.c +++ b/monitor/control.c @@ -52,12 +52,10 @@ static struct btsnoop *btsnoop_file = NULL; static bool hcidump_fallback = false; -#define MAX_PACKET_SIZE (1486 + 4) - struct control_data { uint16_t channel; int fd; - unsigned char buf[MAX_PACKET_SIZE]; + unsigned char buf[BTSNOOP_MAX_PACKET_SIZE]; uint16_t offset; }; @@ -1005,7 +1003,7 @@ bool control_writer(const char *path) void control_reader(const char *path) { - unsigned char buf[MAX_PACKET_SIZE]; + unsigned char buf[BTSNOOP_MAX_PACKET_SIZE]; uint16_t pktlen; uint32_t type; struct timeval tv; |