svn commit: r360846 - head/sys/netgraph/bluetooth/include
Takanori Watanabe
takawata at FreeBSD.org
Sat May 9 14:15:45 UTC 2020
Author: takawata
Date: Sat May 9 14:15:44 2020
New Revision: 360846
URL: https://svnweb.freebsd.org/changeset/base/360846
Log:
Add space for RSSI in data member.
RSSI is put just after actual data.
Submitted by: Marc Veldman
PR: 245920
Modified:
head/sys/netgraph/bluetooth/include/ng_hci.h
Modified: head/sys/netgraph/bluetooth/include/ng_hci.h
==============================================================================
--- head/sys/netgraph/bluetooth/include/ng_hci.h Sat May 9 13:00:38 2020 (r360845)
+++ head/sys/netgraph/bluetooth/include/ng_hci.h Sat May 9 14:15:44 2020 (r360846)
@@ -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
More information about the svn-src-all
mailing list