]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Bluetooth: btintel: Add LE States quirk support
authorChethan T N <chethan.tumkur.narayan@intel.com>
Tue, 21 Mar 2023 04:33:10 +0000 (10:03 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:39 +0000 (17:32 +0100)
[ Upstream commit 77f542b10c535c9a93bf8afdd2665524935807c2 ]

Basically all Intel controllers support both Central/Peripheral
LE states.

This patch enables the LE States quirk by default on all
Solar and Magnertor Intel controllers.

Signed-off-by: Chethan T N <chethan.tumkur.narayan@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/btintel.c

index f6b4b7a1be4cca24cce443fec11a29a88874182e..bbad1207cdfd8faba07aa4d3b3f8544ed6100322 100644 (file)
@@ -2553,9 +2553,8 @@ static int btintel_setup_combined(struct hci_dev *hdev)
                 */
                set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, &hdev->quirks);
 
-               /* Valid LE States quirk for GfP */
-               if (INTEL_HW_VARIANT(ver_tlv.cnvi_bt) == 0x18)
-                       set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks);
+               /* Apply LE States quirk from solar onwards */
+               set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks);
 
                /* Setup MSFT Extension support */
                btintel_set_msft_opcode(hdev,