aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakanori Watanabe <takawata@FreeBSD.org>2020-05-09 14:15:44 +0000
committerTakanori Watanabe <takawata@FreeBSD.org>2020-05-09 14:15:44 +0000
commit75afc548cbe1a5ca23d948256c9dfb46f1a969c5 (patch)
tree095423c5c8f6ed523c451693b0bf1c3e05914ffb
parent697503c4d3428dd839658e3fe07d761c292baaf2 (diff)
downloadsrc-75afc548cbe1a5ca23d948256c9dfb46f1a969c5.tar.gz
src-75afc548cbe1a5ca23d948256c9dfb46f1a969c5.zip
Add space for RSSI in data member.
RSSI is put just after actual data. Submitted by: Marc Veldman PR: 245920
Notes
Notes: svn path=/head/; revision=360846
-rw-r--r--sys/netgraph/bluetooth/include/ng_hci.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/bluetooth/include/ng_hci.h b/sys/netgraph/bluetooth/include/ng_hci.h
index 3791dcbaa714..b2ec0753f769 100644
--- a/sys/netgraph/bluetooth/include/ng_hci.h
+++ b/sys/netgraph/bluetooth/include/ng_hci.h
@@ -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