Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28b8df77 authored by Andrei Emeltchenko's avatar Andrei Emeltchenko Committed by Johan Hedberg
Browse files

Bluetooth: Fix init request completion with AMP controllers



Mark request status as done for Read Local Version HCI command. In AMP
initialization this HCI command is the last and needs to be completed.

Signed-off-by: default avatarAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 3159d384
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -620,7 +620,7 @@ static void hci_cc_read_local_version(struct hci_dev *hdev, struct sk_buff *skb)
	BT_DBG("%s status 0x%x", hdev->name, rp->status);
	BT_DBG("%s status 0x%x", hdev->name, rp->status);


	if (rp->status)
	if (rp->status)
		return;
		goto done;


	hdev->hci_ver = rp->hci_ver;
	hdev->hci_ver = rp->hci_ver;
	hdev->hci_rev = __le16_to_cpu(rp->hci_rev);
	hdev->hci_rev = __le16_to_cpu(rp->hci_rev);
@@ -634,6 +634,9 @@ static void hci_cc_read_local_version(struct hci_dev *hdev, struct sk_buff *skb)


	if (test_bit(HCI_INIT, &hdev->flags))
	if (test_bit(HCI_INIT, &hdev->flags))
		hci_setup(hdev);
		hci_setup(hdev);

done:
	hci_req_complete(hdev, HCI_OP_READ_LOCAL_VERSION, rp->status);
}
}


static void hci_setup_link_policy(struct hci_dev *hdev)
static void hci_setup_link_policy(struct hci_dev *hdev)