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 _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"