Bluetooth: Fix incorrect call to memcpy()

This call was supposed to be net_buf_add_mem().

Change-Id: I5e4a718474905c433533fd1c1d7e8e0b7ff35739
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-12-27 11:52:47 +02:00
commit 14472d757d

View file

@ -408,7 +408,7 @@ static int set_random_address(const bt_addr_t *addr)
return -ENOBUFS;
}
memcpy(buf, addr, sizeof(*addr));
net_buf_add_mem(buf, addr, sizeof(*addr));
err = bt_hci_cmd_send_sync(BT_HCI_OP_LE_SET_RANDOM_ADDRESS, buf, NULL);
if (err) {