Bluetooth: Use standard HCI cmd timeout for RESET
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Mon, 11 Jun 2012 08:13:06 +0000 (11:13 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 12 Jun 2012 03:06:19 +0000 (00:06 -0300)
Remove magic and use standard HCI cmd timeout

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_core.c

index 08994ecc3b6a5e7cc168ee7cd957a38c49d2e579..471e4fb1b6e57ded992461e89b676150f5ff7209 100644 (file)
@@ -783,7 +783,7 @@ static int hci_dev_do_close(struct hci_dev *hdev)
            test_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks)) {
                set_bit(HCI_INIT, &hdev->flags);
                __hci_request(hdev, hci_reset_req, 0,
-                             msecs_to_jiffies(250));
+                             msecs_to_jiffies(HCI_CMD_TIMEOUT));
                clear_bit(HCI_INIT, &hdev->flags);
        }