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:
parent
63f71adc5f
commit
14472d757d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue