summaryrefslogtreecommitdiff
path: root/lib/hci.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-12-17 23:42:29 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-12-17 23:42:29 +0100
commitb6442a63bd405bb16516edf9211139a3d403d241 (patch)
treef1ec7e214f530228c77ab5e97c338b1ac71c5922 /lib/hci.h
parentd54a7fe75ac0bc9b3c2447b308f992f7545aacef (diff)
downloadbluez-b6442a63bd405bb16516edf9211139a3d403d241.tar.gz
lib: Correct AMP assoc data structures
Diffstat (limited to 'lib/hci.h')
-rw-r--r--lib/hci.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/hci.h b/lib/hci.h
index c48482394..56c931622 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -1410,16 +1410,17 @@ typedef struct {
#define OCF_READ_LOCAL_AMP_ASSOC 0x000A
typedef struct {
uint8_t handle;
- uint16_t len_so_far;
- uint16_t max_len;
+ uint16_t length_so_far;
+ uint16_t assoc_length;
} __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 rem_len;
- uint8_t frag[0];
+ uint16_t length;
+ uint8_t fragment[HCI_MAX_NAME_LENGTH];
} __attribute__ ((packed)) read_local_amp_assoc_rp;
+#define READ_LOCAL_AMP_ASSOC_RP_SIZE 252
#define OCF_WRITE_REMOTE_AMP_ASSOC 0x000B
typedef struct {