diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-04-25 00:57:48 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-04-25 00:57:48 +0000 |
commit | 7b2f84db82d556f1f1552fee2b3de4d45bbbd236 (patch) | |
tree | dc4fba18ec3d3bf5a73bb33ce1c5369f13a6316d /usr.sbin/bluetooth | |
parent | 2b17527cea45248852c52713bf6515c776730342 (diff) | |
download | src-test2-7b2f84db82d556f1f1552fee2b3de4d45bbbd236.tar.gz src-test2-7b2f84db82d556f1f1552fee2b3de4d45bbbd236.zip |
Notes
Diffstat (limited to 'usr.sbin/bluetooth')
-rw-r--r-- | usr.sbin/bluetooth/hccontrol/le.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/bluetooth/hccontrol/le.c b/usr.sbin/bluetooth/hccontrol/le.c index 236ce7896f9e..9b29b8de8950 100644 --- a/usr.sbin/bluetooth/hccontrol/le.c +++ b/usr.sbin/bluetooth/hccontrol/le.c @@ -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), |