[PATCH 2/2] Bluetooh: Fix hci_cc_read_local_ext_features() From: Andre Guedes Copy the Features value according to the Page number. diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 6a09143..9ef6012 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -695,7 +695,14 @@ static void hci_cc_read_local_ext_features(struct hci_dev *hdev, if (rp->status) return; - memcpy(hdev->host_features, rp->features, 8); + 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); }