diff --git a/lib/functions/compilation/patch/drivers_network.sh b/lib/functions/compilation/patch/drivers_network.sh index d51569cfe..7294fec4e 100644 --- a/lib/functions/compilation/patch/drivers_network.sh +++ b/lib/functions/compilation/patch/drivers_network.sh @@ -534,7 +534,7 @@ driver_uwe5622() { fi fi - if linux-version compare "${version}" ge 6.15; then + if linux-version compare "${version}" ge 6.16; then process_patch_file "${SRC}/patch/misc/wireless-uwe5622/uwe5622-v6.16.patch" "applying" fi fi diff --git a/patch/misc/wireless-uwe5622/uwe5622-v6.16.patch b/patch/misc/wireless-uwe5622/uwe5622-v6.16.patch index 11ad6dccc..1cbb1f6e7 100644 --- a/patch/misc/wireless-uwe5622/uwe5622-v6.16.patch +++ b/patch/misc/wireless-uwe5622/uwe5622-v6.16.patch @@ -194,3 +194,29 @@ index 4abfa9d04e1..a8e824e5742 100644 #else ack_info = (struct sprdwl_tcp_ack_info *)data; #endif +diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c +index d958822bbbd..c4bad03e409 100644 +--- a/drivers/bluetooth/hci_ldisc.c ++++ b/drivers/bluetooth/hci_ldisc.c +@@ -670,7 +670,7 @@ static int hci_uart_register_dev(struct hci_uart *hu) + // bluetooth devices + if (hdev->manufacturer == 0xffff && hu->tty->driver && + strncmp(hu->tty->driver->name, "ttyBT", 5) == 0) +- set_bit(HCI_QUIRK_BROKEN_PARK_LINK_STATUS, &hdev->quirks); ++ hci_set_quirk(hdev, HCI_QUIRK_BROKEN_PARK_LINK_STATUS); + + if (test_bit(HCI_UART_RAW_DEVICE, &hu->hdev_flags)) + hci_set_quirk(hdev, HCI_QUIRK_RAW_DEVICE); +diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c +index b8b4e929d46..2dd886ee4ab 100644 +--- a/net/bluetooth/hci_sync.c ++++ b/net/bluetooth/hci_sync.c +@@ -4190,7 +4190,7 @@ static int hci_setup_link_policy_sync(struct hci_dev *hdev) + link_policy |= HCI_LP_HOLD; + if (lmp_sniff_capable(hdev)) + link_policy |= HCI_LP_SNIFF; +- if (lmp_park_capable(hdev) && !test_bit(HCI_QUIRK_BROKEN_PARK_LINK_STATUS, &hdev->quirks)) ++ if (lmp_park_capable(hdev) && !hci_test_quirk(hdev, HCI_QUIRK_BROKEN_PARK_LINK_STATUS)) + link_policy |= HCI_LP_PARK; + + cp.policy = cpu_to_le16(link_policy);