mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-14 09:56:59 +08:00
15 lines
421 B
Diff
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)
|