summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-07-08 15:54:19 -0300
committerVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-07-08 21:05:36 -0300
commit032fc6f086809f64366a9754e13fc64093b21480 (patch)
treecdbe76062cb64117c80dbd30d431f2901e7b3de3
parent46d1c28faf71d2e9cf281696bc762ef90b165005 (diff)
downloadbluez-032fc6f086809f64366a9754e13fc64093b21480.tar.gz
Fix wrong fields on le_create_connection_cp
There were some fields that were mistakenly added to the structure, this removes them and fixes the size of the struct.
-rw-r--r--lib/hci.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/hci.h b/lib/hci.h
index 86071bb4c..304b54968 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -1350,11 +1350,10 @@ typedef struct {
typedef struct {
uint16_t interval;
uint16_t window;
- uint16_t initiator_filter;
+ uint8_t initiator_filter;
uint8_t peer_bdaddr_type;
bdaddr_t peer_bdaddr;
uint8_t own_bdaddr_type;
- bdaddr_t own_bdaddr;
uint16_t min_interval;
uint16_t max_interval;
uint16_t latency;
@@ -1362,7 +1361,7 @@ typedef struct {
uint16_t min_ce_length;
uint16_t max_ce_length;
} __attribute__ ((packed)) le_create_connection_cp;
-#define LE_CREATE_CONN_CP_SIZE 32
+#define LE_CREATE_CONN_CP_SIZE 25
#define OCF_LE_CREATE_CONN_CANCEL 0x000E