Skip to contentSkip to conversation

Bluetooth: Fix enabling BR/EDR SC when powering on

PATCH In review Johan Hedberg 2 participants 2 messages Dec 12, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: Fix enabling BR/EDR SC when powering on

From: Johan Hedberg <[email protected]>

If we're in the AUTO_OFF stage the powered_update_hci() function is responsible for doing the updates to the HCI state that were not done during the actual mgmt command handlers. One of the updates needing done is for BR/EDR SC support. This patch adds the missing HCI command for SC support to the powered_update_hci() function.

---
 net/bluetooth/mgmt.c | 5 +++++
 1 file changed, 5 insertions(+)
net/bluetooth/mgmt.c +5 -0
index b0782668cd22..23a0ca5a4737 100644
@@ -6097,6 +6097,11 @@ static int powered_update_hci(struct hci_dev *hdev)
 		hci_req_add(&req, HCI_OP_WRITE_SSP_MODE, 1, &ssp);
 	}
 
+	if (bredr_sc_enabled(hdev) && !lmp_host_sc_capable(hdev)) {
+		u8 sc = 0x01;
+		hci_req_add(&req, HCI_OP_WRITE_SC_SUPPORT, sizeof(sc), &sc);
+	}
+
 	if (test_bit(HCI_LE_ENABLED, &hdev->dev_flags) &&
 	    lmp_bredr_capable(hdev)) {
 		struct hci_cp_write_le_host_supported cp;
Signature · 1 line
2.1.0
maintainer
#1 lore raw

Hi Johan,

Quoted 10 lines

If we're in the AUTO_OFF stage the powered_update_hci() function is responsible for doing the updates to the HCI state that were not done during the actual mgmt command handlers. One of the updates needing done is for BR/EDR SC support. This patch adds the missing HCI command for SC support to the powered_update_hci() function.

---
net/bluetooth/mgmt.c | 5 +++++

1 file changed, 5 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel