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

Commit b5b32b65 authored by Andre Guedes's avatar Andre Guedes Committed by Gustavo Padovan
Browse files

Bluetooth: Fix hci_cc_read_local_ext_features()



Copy the Features value according to the Page number.

Signed-off-by: default avatarAndre Guedes <aguedespe@gmail.com>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 59e29406
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -711,7 +711,14 @@ static void hci_cc_read_local_ext_features(struct hci_dev *hdev,
	if (rp->status)
		return;

	switch (rp->page) {
	case 0:
		memcpy(hdev->features, rp->features, 8);
		break;
	case 1:
		memcpy(hdev->host_features, rp->features, 8);
		break;
	}

	hci_req_complete(hdev, HCI_OP_READ_LOCAL_EXT_FEATURES, rp->status);
}