|
@@ -2913,7 +2913,8 @@ int mgmt_powered(struct hci_dev *hdev, u8 powered)
|
|
|
mgmt_pending_foreach(MGMT_OP_SET_POWERED, hdev, settings_rsp, &match);
|
|
|
|
|
|
if (powered) {
|
|
|
- if (test_bit(HCI_SSP_ENABLED, &hdev->dev_flags)) {
|
|
|
+ if (test_bit(HCI_SSP_ENABLED, &hdev->dev_flags) &&
|
|
|
+ !lmp_host_ssp_capable(hdev)) {
|
|
|
u8 ssp = 1;
|
|
|
|
|
|
hci_send_cmd(hdev, HCI_OP_WRITE_SSP_MODE, 1, &ssp);
|