Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24718ca5 authored by Waldemar Rymarkiewicz's avatar Waldemar Rymarkiewicz Committed by Gustavo Padovan
Browse files

Bluetooth: Remove a magic number

parent b5ad8b7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1143,7 +1143,7 @@ static int pin_code_reply(struct sock *sk, u16 index, unsigned char *data,


	bacpy(&reply.bdaddr, &cp->bdaddr);
	bacpy(&reply.bdaddr, &cp->bdaddr);
	reply.pin_len = cp->pin_len;
	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);
	err = hci_send_cmd(hdev, HCI_OP_PIN_CODE_REPLY, sizeof(reply), &reply);
	if (err < 0)
	if (err < 0)