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

Commit 9756d33b authored by Marcel Holtmann's avatar Marcel Holtmann
Browse files

Bluetooth: Enable LE Channel Selection Algorithm event



If the Channel Selection Algorithm #2 feature is supported, then enable
the new LE Channel Selection Algorithm event.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 12204875
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -399,6 +399,7 @@ enum {
#define HCI_LE_PING			0x10
#define HCI_LE_PING			0x10
#define HCI_LE_DATA_LEN_EXT		0x20
#define HCI_LE_DATA_LEN_EXT		0x20
#define HCI_LE_EXT_SCAN_POLICY		0x80
#define HCI_LE_EXT_SCAN_POLICY		0x80
#define HCI_LE_CHAN_SEL_ALG2		0x40


/* Connection modes */
/* Connection modes */
#define HCI_CM_ACTIVE	0x0000
#define HCI_CM_ACTIVE	0x0000
+8 −0
Original line number Original line Diff line number Diff line
@@ -635,6 +635,14 @@ static int hci_init3_req(struct hci_request *req, unsigned long opt)
						 * Report
						 * 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,
		/* If the controller supports the LE Set Scan Enable command,
		 * enable the corresponding advertising report event.
		 * enable the corresponding advertising report event.
		 */
		 */