Bluetooth: fix missing parameter for HCI_OP_DISCONNECT
authorAnderson Lizardo <anderson.lizardo@openbossa.org>
Mon, 13 Jun 2011 19:42:03 +0000 (15:42 -0400)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:18:16 +0000 (12:18 -0800)
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>
net/bluetooth/mgmt.c

index 606cb93..4b19d10 100644 (file)
@@ -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: