diff options
-rw-r--r-- | net/bluetooth/hci_core.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index c1d5726cb8c9..93f92a085506 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -1743,6 +1743,20 @@ static void hci_init3_req(struct hci_request *req, unsigned long opt) | |||
1743 | * Report | 1743 | * Report |
1744 | */ | 1744 | */ |
1745 | 1745 | ||
1746 | /* If the controller supports the LE Read Local P-256 | ||
1747 | * Public Key command, enable the corresponding event. | ||
1748 | */ | ||
1749 | if (hdev->commands[34] & 0x02) | ||
1750 | events[0] |= 0x80; /* LE Read Local P-256 | ||
1751 | * Public Key Complete | ||
1752 | */ | ||
1753 | |||
1754 | /* If the controller supports the LE Generate DHKey | ||
1755 | * command, enable the corresponding event. | ||
1756 | */ | ||
1757 | if (hdev->commands[34] & 0x04) | ||
1758 | events[1] |= 0x01; /* LE Generate DHKey Complete */ | ||
1759 | |||
1746 | hci_req_add(req, HCI_OP_LE_SET_EVENT_MASK, sizeof(events), | 1760 | hci_req_add(req, HCI_OP_LE_SET_EVENT_MASK, sizeof(events), |
1747 | events); | 1761 | events); |
1748 | 1762 | ||