Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 2020 09:16:18 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r361187 - stable/11/usr.sbin/bluetooth/hccontrol
Message-ID:  <202005180916.04I9GIL5058174@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon May 18 09:16:17 2020
New Revision: 361187
URL: https://svnweb.freebsd.org/changeset/base/361187

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

Modified:
  stable/11/usr.sbin/bluetooth/hccontrol/le.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/bluetooth/hccontrol/le.c
==============================================================================
--- stable/11/usr.sbin/bluetooth/hccontrol/le.c	Mon May 18 09:15:45 2020	(r361186)
+++ stable/11/usr.sbin/bluetooth/hccontrol/le.c	Mon May 18 09:16:17 2020	(r361187)
@@ -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), 



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