diff options
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r-- | net/bluetooth/hci_core.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 9570358adb77..e246d3782ac2 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -589,6 +589,7 @@ static void hci_set_le_support(struct hci_request *req) | |||
589 | static void hci_init3_req(struct hci_request *req, unsigned long opt) | 589 | static void hci_init3_req(struct hci_request *req, unsigned long opt) |
590 | { | 590 | { |
591 | struct hci_dev *hdev = req->hdev; | 591 | struct hci_dev *hdev = req->hdev; |
592 | u8 p; | ||
592 | 593 | ||
593 | if (hdev->commands[5] & 0x10) | 594 | if (hdev->commands[5] & 0x10) |
594 | hci_setup_link_policy(req); | 595 | hci_setup_link_policy(req); |
@@ -597,6 +598,15 @@ static void hci_init3_req(struct hci_request *req, unsigned long opt) | |||
597 | hci_set_le_support(req); | 598 | hci_set_le_support(req); |
598 | hci_update_ad(req); | 599 | hci_update_ad(req); |
599 | } | 600 | } |
601 | |||
602 | /* Read features beyond page 1 if available */ | ||
603 | for (p = 2; p < HCI_MAX_PAGES && p <= hdev->max_page; p++) { | ||
604 | struct hci_cp_read_local_ext_features cp; | ||
605 | |||
606 | cp.page = p; | ||
607 | hci_req_add(req, HCI_OP_READ_LOCAL_EXT_FEATURES, | ||
608 | sizeof(cp), &cp); | ||
609 | } | ||
600 | } | 610 | } |
601 | 611 | ||
602 | static int __hci_init(struct hci_dev *hdev) | 612 | static int __hci_init(struct hci_dev *hdev) |