Put advertising data in correct place.

Submitted by:	Marc Veldman <marc@bumblingdork.com>
PR:		245848
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2020-04-25 00:57:48 +00:00
parent 2b17527cea
commit 7b2f84db82
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360288

View file

@ -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),