Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2020 14:15:44 +0000 (UTC)
From:      Takanori Watanabe <takawata@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r360846 - head/sys/netgraph/bluetooth/include
Message-ID:  <202005091415.049EFisr089535@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005091415.049EFisr089535>