Commit 14d17c78 authored by Pedro Nishiyama's avatar Pedro Nishiyama Committed by Luiz Augusto von Dentz
Browse files

Bluetooth: Disable SCO support if READ_VOICE_SETTING is unsupported/broken



A SCO connection without the proper voice_setting can cause
the controller to lock up.

Signed-off-by: default avatarPedro Nishiyama <nishiyama.pedro@gmail.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 12788133
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -930,6 +930,9 @@ static u8 hci_cc_read_buffer_size(struct hci_dev *hdev, void *data,
		hdev->sco_pkts = 8;
	}

	if (!read_voice_setting_capable(hdev))
		hdev->sco_pkts = 0;

	hdev->acl_cnt = hdev->acl_pkts;
	hdev->sco_cnt = hdev->sco_pkts;