File leap156.patch of Package rtw89
--- rtw89/usb.c 2025-12-29 17:38:24.717669503 +0100
+++ rtw89n/usb.c 2025-12-29 19:10:57.983393313 +0100
@@ -704,10 +704,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
}
}