summaryrefslogtreecommitdiff
path: root/lib/hci.h
diff options
context:
space:
mode:
authorAlex Deymo <deymo@chromium.org>2013-06-11 14:16:42 -0700
committerJohan Hedberg <johan.hedberg@intel.com>2013-06-16 18:25:46 +0300
commit0585258ea15893af854d35cc573f4e56094a5478 (patch)
tree7520a9b8a3c20079f4d6e006b5c3de8036a7690c /lib/hci.h
parentc757d55ce00f11ceadb684a37d80ca7101038f8c (diff)
downloadbluez-0585258ea15893af854d35cc573f4e56094a5478.tar.gz
lib: Fix two size constants
Fixes the value of RESET_FAILED_CONTACT_COUNTER_RP_SIZE and RESET_FAILED_CONTACT_COUNTER_RP_SIZE macros to respect the associated struct.
Diffstat (limited to 'lib/hci.h')
-rw-r--r--lib/hci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hci.h b/lib/hci.h
index 56c931622..898cf5291 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -1350,7 +1350,7 @@ typedef struct {
uint8_t status;
uint16_t handle;
} __attribute__ ((packed)) reset_failed_contact_counter_rp;
-#define RESET_FAILED_CONTACT_COUNTER_RP_SIZE 4
+#define RESET_FAILED_CONTACT_COUNTER_RP_SIZE 3
#define OCF_READ_LINK_QUALITY 0x0003
typedef struct {
@@ -1764,7 +1764,7 @@ typedef struct {
uint16_t handle;
uint8_t encrypt;
} __attribute__ ((packed)) evt_encrypt_change;
-#define EVT_ENCRYPT_CHANGE_SIZE 5
+#define EVT_ENCRYPT_CHANGE_SIZE 4
#define EVT_CHANGE_CONN_LINK_KEY_COMPLETE 0x09
typedef struct {