summaryrefslogtreecommitdiff
path: root/lib/hci.h
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2011-12-15 11:48:03 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-01-05 12:39:35 +0200
commit1a096265b36cf3f56dc9d13868b8cfd1a1c51ae9 (patch)
tree2545ae971c59d0632714dc13324cbb69664e7b97 /lib/hci.h
parentdeada676408291b80fdb1e27f695ba229674d839 (diff)
downloadbluez-1a096265b36cf3f56dc9d13868b8cfd1a1c51ae9.tar.gz
lib: Fix structures for AMP Assoc Read
Make struct names similar to kernel and remove static array since fragment length can be other size than HCI_MAX_NAME_LENGTH, which is for totally different purpose.
Diffstat (limited to 'lib/hci.h')
-rw-r--r--lib/hci.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/hci.h b/lib/hci.h
index 51184eec6..48692facd 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -1382,17 +1382,16 @@ typedef struct {
#define OCF_READ_LOCAL_AMP_ASSOC 0x000A
typedef struct {
uint8_t handle;
- uint16_t length_so_far;
- uint16_t assoc_length;
+ uint16_t len_so_far;
+ uint16_t max_len;
} __attribute__ ((packed)) read_local_amp_assoc_cp;
-#define READ_LOCAL_AMP_ASSOC_CP_SIZE 5
+
typedef struct {
uint8_t status;
uint8_t handle;
- uint16_t length;
- uint8_t fragment[HCI_MAX_NAME_LENGTH];
+ uint16_t rem_len;
+ uint8_t frag[0];
} __attribute__ ((packed)) read_local_amp_assoc_rp;
-#define READ_LOCAL_AMP_ASSOC_RP_SIZE 252
#define OCF_WRITE_REMOTE_AMP_ASSOC 0x000B
typedef struct {