From 38bda3ac57dc867c19cb8436b39ecb33cd66e48c Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Wed, 24 May 2023 23:26:28 +0200 Subject: [PATCH] drivers_network: wireless-driver-for-uwe5622-park-link-v6.1-post: fix for 6.1.30 --- ...iver-for-uwe5622-park-link-v6.1-post.patch | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/patch/misc/wireless-driver-for-uwe5622-park-link-v6.1-post.patch b/patch/misc/wireless-driver-for-uwe5622-park-link-v6.1-post.patch index 5889d7fc79..f474f0a95e 100644 --- a/patch/misc/wireless-driver-for-uwe5622-park-link-v6.1-post.patch +++ b/patch/misc/wireless-driver-for-uwe5622-park-link-v6.1-post.patch @@ -10,10 +10,9 @@ Subject: [PATCH] fix spreadtrum (sprd) bluetooth broken park link status 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c -index 865112e96ff..61ccf31ee71 100644 ---- a/drivers/bluetooth/hci_ldisc.c -+++ b/drivers/bluetooth/hci_ldisc.c -@@ -658,6 +658,12 @@ static int hci_uart_register_dev(struct hci_uart *hu) +--- a/drivers/bluetooth/hci_ldisc.c (revision 58aa050aa57333b34b358234002121c59fb3af26) ++++ b/drivers/bluetooth/hci_ldisc.c (revision bf8ab2f58b21494ffde96979431a3da931deb48b) +@@ -658,6 +658,12 @@ hdev->setup = hci_uart_setup; SET_HCIDEV_DEV(hdev, hu->tty->dev); @@ -27,27 +26,26 @@ index 865112e96ff..61ccf31ee71 100644 set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks); diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h -index 9f6f52d368a..b69f6be67d3 100644 ---- a/include/net/bluetooth/hci.h -+++ b/include/net/bluetooth/hci.h -@@ -301,6 +301,12 @@ enum { - * during the hdev->setup vendor callback. +--- a/include/net/bluetooth/hci.h (revision 58aa050aa57333b34b358234002121c59fb3af26) ++++ b/include/net/bluetooth/hci.h (revision bf8ab2f58b21494ffde96979431a3da931deb48b) +@@ -309,6 +309,13 @@ + * to support it. */ - HCI_QUIRK_BROKEN_MWS_TRANSPORT_CONFIG, + HCI_QUIRK_BROKEN_SET_RPA_TIMEOUT, + + /* + * Device declares that support Park link status, but it really + * does not support it and fails to initialize + */ -+ HCI_QUIRK_BROKEN_PARK_LINK_STATUS ++ HCI_QUIRK_BROKEN_PARK_LINK_STATUS, ++ }; /* HCI device flags */ diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c -index 8d6c8cbfe1d..9a743e597bb 100644 ---- a/net/bluetooth/hci_sync.c -+++ b/net/bluetooth/hci_sync.c -@@ -3760,7 +3760,7 @@ static int hci_setup_link_policy_sync(struct hci_dev *hdev) +--- a/net/bluetooth/hci_sync.c (revision 58aa050aa57333b34b358234002121c59fb3af26) ++++ b/net/bluetooth/hci_sync.c (revision bf8ab2f58b21494ffde96979431a3da931deb48b) +@@ -3804,7 +3804,7 @@ link_policy |= HCI_LP_HOLD; if (lmp_sniff_capable(hdev)) link_policy |= HCI_LP_SNIFF;