Bluetooth: Set Simultaneous LE and BR/EDR controller option to zero
Subsystems (2)
Marcel Holtmann
maintainerRFC 1/1 Bluetooth: Set Simultaneous LE and BR/EDR controller option to zero
With the Bluetooth 4.1 specification the Simultaneous LE and BR/EDR controller option has been deprecated. It shall be set to zero and ignored otherwise.
Signed-off-by Marcel Holtmann <[email protected]>
--- net/bluetooth/hci_core.c | 2 +- net/bluetooth/mgmt.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
net/bluetooth/hci_core.c +1 -1
@@ -1567,7 +1567,7 @@ static void hci_set_le_support(struct hci_request *req)if (test_bit (HCI_LE_ENABLED , &hdev->dev_flags)) { cp.le =0x01 ; - cp.simul =lmp_le_br_capable (hdev); + cp.simul =0x00 ; }if (cp.le !=lmp_host_le_capable (hdev))
net/bluetooth/mgmt.c +3 -3
@@ -2264,7 +2264,7 @@ static int set_le(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)if (val) { hci_cp.le = val; - hci_cp.simul =lmp_le_br_capable (hdev); + hci_cp.simul =0x00 ; }else {if (test_bit (HCI_LE_ADV , &hdev->dev_flags))disable_advertising (&req);
@@ -5925,8 +5925,8 @@ static int powered_update_hci(struct hci_dev *hdev) lmp_bredr_capable(hdev)) {struct hci_cp_write_le_host_supported cp; - cp.le =1 ; - cp.simul =lmp_le_br_capable (hdev); + cp.le =0x01 ; + cp.simul =0x00 ;/* Check first if we already have the right * host state (host features set)
Signature · 1 line
1.9.3
Johan Hedberg
AppliedHi Marcel,
Quoted 9 lines · Marcel Holtmann
With the Bluetooth 4.1 specification the Simultaneous LE and BR/EDR controller option has been deprecated. It shall be set to zero and ignored otherwise.
Signed-off-by Marcel Holtmann <[email protected]>--- net/bluetooth/hci_core.c | 2 +- net/bluetooth/mgmt.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
Applied to bluetooth-next. Thanks.
Johan