diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2010-08-31 16:09:57 -0300 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2010-10-04 17:38:22 -0300 |
commit | 662450be0c4138c9fb97735ec2113d4664b97185 (patch) | |
tree | eed7f5f120d4eb28ebfb831d1a5926e035e1a738 /lib/hci.h | |
parent | e0e4bd6e2609377776ff73072d36373a476338ed (diff) |
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.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 { |