diff mbox series

btbcm: disable read tx power for MacBook Air 8,1 and 8,2

Message ID 29D6266D-7470-4423-B37C-B702C8E85546@live.com
State Accepted
Commit 3318ae23bbcb14b7f68e9006756ba6d970955635
Headers show
Series btbcm: disable read tx power for MacBook Air 8,1 and 8,2 | expand

Commit Message

Aditya Garg Jan. 3, 2022, 1:28 p.m. UTC
From: Aditya Garg <gargaditya08@live.com>

The MacBook Air 8,1 and 8,2 also need querying of LE Tx power
to be disabled for Bluetooth to work.

Signed-off-by: Aditya Garg <gargaditya08@live.com>
Cc: stable@vger.kernel.org
---
 drivers/bluetooth/btbcm.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Comments

Marcel Holtmann Jan. 6, 2022, 1:56 p.m. UTC | #1
Hi Aditya,

> The MacBook Air 8,1 and 8,2 also need querying of LE Tx power
> to be disabled for Bluetooth to work.
> 
> Signed-off-by: Aditya Garg <gargaditya08@live.com>
> Cc: stable@vger.kernel.org
> ---
> drivers/bluetooth/btbcm.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel
diff mbox series

Patch

diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
index 07fabaa5a..d9ceca7a7 100644
--- a/drivers/bluetooth/btbcm.c
+++ b/drivers/bluetooth/btbcm.c
@@ -363,6 +363,18 @@  static const struct dmi_system_id disable_broken_read_transmit_power[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro16,4"),
 		},
 	},
+	{
+		 .matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "Apple Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "MacBookAir8,1"),
+		},
+	},
+	{
+		 .matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "Apple Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "MacBookAir8,2"),
+		},
+	},
 	{
 		 .matches = {
 			DMI_MATCH(DMI_BOARD_VENDOR, "Apple Inc."),