lede/package/kernel/mac80211/patches/rtl/100-rtw88-pci-kernel-6.12.patch
2025-05-30 23:25:28 +08:00

15 lines
421 B
Diff

--- a/drivers/net/wireless/realtek/rtw88/pci.c
+++ b/drivers/net/wireless/realtek/rtw88/pci.c
@@ -1608,7 +1608,11 @@ static struct rtw_hci_ops rtw_pci_ops =
static int rtw_pci_request_irq(struct rtw_dev *rtwdev, struct pci_dev *pdev)
{
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 10, 0))
unsigned int flags = PCI_IRQ_LEGACY;
+#else
+ unsigned int flags = PCI_IRQ_INTX;
+#endif
int ret;
if (!rtw_disable_msi)