Bluetooth: Enable LE Channel Selection Algorithm event
[linux-2.6-microblaze.git] / net / bluetooth / hci_core.c
index 4a0cac7..e58b903 100644 (file)
@@ -635,6 +635,14 @@ static int hci_init3_req(struct hci_request *req, unsigned long opt)
                                                 * Report
                                                 */
 
+               /* If the controller supports Channel Selection Algorithm #2
+                * feature, enable the corresponding event.
+                */
+               if (hdev->le_features[1] & HCI_LE_CHAN_SEL_ALG2)
+                       events[2] |= 0x08;      /* LE Channel Selection
+                                                * Algorithm
+                                                */
+
                /* If the controller supports the LE Set Scan Enable command,
                 * enable the corresponding advertising report event.
                 */