Bluetooth: fix missing parameter for HCI_OP_DISCONNECT
The "dc" variable is initialized but not passed to hci_send_cmd(). Signed-off-by: Anderson Lizardo <anderson.lizardo@openbossa.org> Signed-off-by: Bruna Moreira <bruna.moreira@openbossa.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
da85e5e5af
commit
94ac02726c
1 changed files with 1 additions and 1 deletions
|
@ -990,7 +990,7 @@ static int remove_key(struct sock *sk, u16 index, unsigned char *data, u16 len)
|
||||||
|
|
||||||
put_unaligned_le16(conn->handle, &dc.handle);
|
put_unaligned_le16(conn->handle, &dc.handle);
|
||||||
dc.reason = 0x13; /* Remote User Terminated Connection */
|
dc.reason = 0x13; /* Remote User Terminated Connection */
|
||||||
err = hci_send_cmd(hdev, HCI_OP_DISCONNECT, 0, NULL);
|
err = hci_send_cmd(hdev, HCI_OP_DISCONNECT, sizeof(dc), &dc);
|
||||||
}
|
}
|
||||||
|
|
||||||
unlock:
|
unlock:
|
||||||
|
|
Loading…
Reference in a new issue