File leap.patch of Package rtw89
diff -Naur rtw89/core.h rtw89n/core.h
--- rtw89/core.h 2026-02-04 17:23:32.458836574 +0100
+++ rtw89n/core.h 2026-02-04 17:24:34.367929920 +0100
@@ -31,7 +31,7 @@
extern const struct ieee80211_ops rtw89_ops;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 6, 16)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
/**
* umin - return minimum of two non-negative values
* Signed types are zero extended to match a larger unsigned type.
diff -Naur rtw89/usb.c rtw89n/usb.c
--- rtw89/usb.c 2026-02-04 17:23:32.504836643 +0100
+++ rtw89n/usb.c 2026-02-04 17:40:22.262088853 +0100
@@ -706,10 +706,11 @@
int i;
for (i = 0; i < ARRAY_SIZE(rtwusb->tx_queue); i++) {
- if (i == RTW89_TXCH_CH12)
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(6, 13, 0)
skb_queue_purge(&rtwusb->tx_queue[i]);
- else
+#else
ieee80211_purge_tx_queue(rtwdev->hw, &rtwusb->tx_queue[i]);
+#endif
}
}