summaryrefslogtreecommitdiff
path: root/lib/hci.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2010-08-31 16:09:57 -0300
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2010-10-04 17:38:22 -0300
commit662450be0c4138c9fb97735ec2113d4664b97185 (patch)
treeeed7f5f120d4eb28ebfb831d1a5926e035e1a738 /lib/hci.h
parente0e4bd6e2609377776ff73072d36373a476338ed (diff)
downloadbluez-662450be0c4138c9fb97735ec2113d4664b97185.tar.gz
Remove RSSI field from the advertising report event
Advertising data has variable length. Maximum length are 31 bytes. RSSI field is the last byte of the datagram. Declare the data field with fixed length will point the rssi field to an invalid memory address.
Diffstat (limited to 'lib/hci.h')
-rw-r--r--lib/hci.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/hci.h b/lib/hci.h
index 512dab91e..ea8fffddd 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -2079,10 +2079,9 @@ typedef struct {
uint8_t bdaddr_type;
bdaddr_t bdaddr;
uint8_t length;
- uint8_t data[31];
- uint8_t rssi;
+ uint8_t data[0];
} __attribute__ ((packed)) le_advertising_info;
-#define LE_ADVERTISING_INFO_SIZE 41
+#define LE_ADVERTISING_INFO_SIZE 9
#define EVT_LE_CONN_UPDATE_COMPLETE 0x03
typedef struct {