svn commit: r360288 - head/usr.sbin/bluetooth/hccontrol

Hans Petter Selasky hselasky at FreeBSD.org
Sat Apr 25 00:57:49 UTC 2020


Author: hselasky
Date: Sat Apr 25 00:57:48 2020
New Revision: 360288
URL: https://svnweb.freebsd.org/changeset/base/360288

Log:
  Put advertising data in correct place.
  
  Submitted by:	Marc Veldman <marc at bumblingdork.com>
  PR:		245848
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Modified:
  head/usr.sbin/bluetooth/hccontrol/le.c

Modified: head/usr.sbin/bluetooth/hccontrol/le.c
==============================================================================
--- head/usr.sbin/bluetooth/hccontrol/le.c	Sat Apr 25 00:14:17 2020	(r360287)
+++ head/usr.sbin/bluetooth/hccontrol/le.c	Sat Apr 25 00:57:48 2020	(r360288)
@@ -491,6 +491,7 @@ le_set_advertising_data(int s, int argc, char *argv[])
 	parse_param(argc, argv, buf, &len);
 	memset(cp.advertising_data, 0, sizeof(cp.advertising_data));
 	cp.advertising_data_length = len;
+	memcpy(cp.advertising_data, buf, len);
 
 	if (hci_request(s, NG_HCI_OPCODE(NG_HCI_OGF_LE,
 		NG_HCI_OCF_LE_SET_ADVERTISING_DATA), 


More information about the svn-src-all mailing list