Add space for RSSI in data member.

RSSI is put just after actual data.

Submitted by: Marc Veldman
PR: 245920
This commit is contained in:
Takanori Watanabe 2020-05-09 14:15:44 +00:00
parent 697503c4d3
commit 75afc548cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360846

View File

@ -1980,7 +1980,8 @@ typedef struct {
u_int8_t addr_type;
bdaddr_t bdaddr;
u_int8_t length_data;
u_int8_t data[NG_HCI_SCAN_RESPONSE_DATA_MAX];
/* The last octet is for RSSI */
u_int8_t data[NG_HCI_SCAN_RESPONSE_DATA_MAX+1];
}__attribute__((packed)) ng_hci_le_advreport;
#define NG_HCI_LEEV_CON_UPDATE_COMPL 0x03