diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2011-06-13 15:42:03 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-06-13 16:48:42 -0300 |
commit | 94ac02726cb87dd569bac4536f33e4b696b692eb (patch) | |
tree | ab469571f85691fa9e1dad1feb717498801d4ac4 /net/bluetooth | |
parent | da85e5e5afeb72bb6e6b5192a2d252861fafc3e7 (diff) | |
download | op-kernel-dev-94ac02726cb87dd569bac4536f33e4b696b692eb.zip op-kernel-dev-94ac02726cb87dd569bac4536f33e4b696b692eb.tar.gz |
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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index fcccf10..d192089 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -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); 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: |