|
@@ -203,7 +203,7 @@ static void bredr_init(struct hci_dev *hdev)
|
|
|
/* Mandatory initialization */
|
|
/* Mandatory initialization */
|
|
|
|
|
|
|
|
/* Reset */
|
|
/* Reset */
|
|
|
- if (!test_bit(HCI_QUIRK_NO_RESET, &hdev->quirks)) {
|
|
|
|
|
|
|
+ if (!test_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks)) {
|
|
|
set_bit(HCI_RESET, &hdev->flags);
|
|
set_bit(HCI_RESET, &hdev->flags);
|
|
|
hci_send_cmd(hdev, HCI_OP_RESET, 0, NULL);
|
|
hci_send_cmd(hdev, HCI_OP_RESET, 0, NULL);
|
|
|
}
|
|
}
|
|
@@ -792,7 +792,7 @@ static int hci_dev_do_close(struct hci_dev *hdev)
|
|
|
skb_queue_purge(&hdev->cmd_q);
|
|
skb_queue_purge(&hdev->cmd_q);
|
|
|
atomic_set(&hdev->cmd_cnt, 1);
|
|
atomic_set(&hdev->cmd_cnt, 1);
|
|
|
if (!test_bit(HCI_RAW, &hdev->flags) &&
|
|
if (!test_bit(HCI_RAW, &hdev->flags) &&
|
|
|
- test_bit(HCI_QUIRK_NO_RESET, &hdev->quirks)) {
|
|
|
|
|
|
|
+ test_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks)) {
|
|
|
set_bit(HCI_INIT, &hdev->flags);
|
|
set_bit(HCI_INIT, &hdev->flags);
|
|
|
__hci_request(hdev, hci_reset_req, 0,
|
|
__hci_request(hdev, hci_reset_req, 0,
|
|
|
msecs_to_jiffies(250));
|
|
msecs_to_jiffies(250));
|