aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorAlain Michaud <alainm@chromium.org>2020-02-27 18:29:39 +0000
committerMarcel Holtmann <marcel@holtmann.org>2020-02-28 08:53:05 +0100
commit4b127bd5f2cc1b2da041f472dab6dc729cdd4711 (patch)
tree11e123076c76f261a501b3f8d6ea851d2c45de63 /net/bluetooth/mgmt.c
parentBluetooth: btusb: Add flag to define wideband speech capability (diff)
downloadlinux-dev-4b127bd5f2cc1b2da041f472dab6dc729cdd4711.tar.xz
linux-dev-4b127bd5f2cc1b2da041f472dab6dc729cdd4711.zip
Bluetooth: Support querying for WBS support through MGMT
This patch provides a mechanism for MGMT interface client to query the capability of the controller to support WBS. Signed-off-by: Alain Michaud <alainm@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 3074363c68df..1002c657768a 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -762,6 +762,10 @@ static u32 get_supported_settings(struct hci_dev *hdev)
if (lmp_sc_capable(hdev))
settings |= MGMT_SETTING_SECURE_CONN;
+
+ if (test_bit(HCI_QUIRK_WIDE_BAND_SPEECH_SUPPORTED,
+ &hdev->quirks))
+ settings |= MGMT_SETTING_WIDE_BAND_SPEECH;
}
if (lmp_le_capable(hdev)) {