diff options
author | Alain Michaud <alainm@chromium.org> | 2020-02-27 18:29:39 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-02-28 08:53:05 +0100 |
commit | 4b127bd5f2cc1b2da041f472dab6dc729cdd4711 (patch) | |
tree | 11e123076c76f261a501b3f8d6ea851d2c45de63 /net | |
parent | 3e4e3f73b9f4944ebd8100dbe107f2325aa79c6d (diff) | |
download | linux-4b127bd5f2cc1b2da041f472dab6dc729cdd4711.tar.gz linux-4b127bd5f2cc1b2da041f472dab6dc729cdd4711.tar.bz2 linux-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')
-rw-r--r-- | net/bluetooth/mgmt.c | 4 |
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)) { |