mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
30 lines
829 B
Diff
30 lines
829 B
Diff
--- a/ath10k-5.15/core.c
|
|
+++ b/ath10k-5.15/core.c
|
|
@@ -4151,7 +4151,11 @@
|
|
ath10k_debug_print_board_info(ar);
|
|
}
|
|
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
|
|
device_get_mac_address(ar->dev, ar->mac_addr, sizeof(ar->mac_addr));
|
|
+#else
|
|
+ device_get_mac_address(ar->dev, ar->mac_addr);
|
|
+#endif
|
|
|
|
/* Try to get mac address from device node (from nvmem cell) */
|
|
of_get_mac_address(ar->dev->of_node, ar->mac_addr);
|
|
--- a/ath10k-5.15/pci.c
|
|
+++ b/ath10k-5.15/pci.c
|
|
@@ -3563,8 +3563,12 @@
|
|
|
|
void ath10k_pci_init_napi(struct ath10k *ar)
|
|
{
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
|
|
netif_napi_add(&ar->napi_dev, &ar->napi, ath10k_pci_napi_poll,
|
|
ATH10K_NAPI_BUDGET);
|
|
+#else
|
|
+ netif_napi_add(&ar->napi_dev, &ar->napi, ath10k_pci_napi_poll);
|
|
+#endif
|
|
}
|
|
|
|
static int ath10k_pci_init_irq(struct ath10k *ar)
|