mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 00:40:55 +07:00
Bluetooth: Remove a magic number
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
b5ad8b7f8c
commit
24718ca5ee
@ -1143,7 +1143,7 @@ static int pin_code_reply(struct sock *sk, u16 index, unsigned char *data,
|
||||
|
||||
bacpy(&reply.bdaddr, &cp->bdaddr);
|
||||
reply.pin_len = cp->pin_len;
|
||||
memcpy(reply.pin_code, cp->pin_code, 16);
|
||||
memcpy(reply.pin_code, cp->pin_code, sizeof(reply.pin_code));
|
||||
|
||||
err = hci_send_cmd(hdev, HCI_OP_PIN_CODE_REPLY, sizeof(reply), &reply);
|
||||
if (err < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user