mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
mac80211: fix ath10k 5.19 support
This commit is contained in:
parent
c5fdfb9edb
commit
d496bf88a4
14
package/kernel/mac80211/patches/ath10k/991-ath10k-5.19.patch
Normal file
14
package/kernel/mac80211/patches/ath10k/991-ath10k-5.19.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
--- a/drivers/net/wireless/ath/ath10k/core.c
|
||||||
|
+++ b/drivers/net/wireless/ath/ath10k/core.c
|
||||||
|
@@ -3333,7 +3333,11 @@
|
||||||
|
ath10k_debug_print_board_info(ar);
|
||||||
|
}
|
||||||
|
|
||||||
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,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
|
||||||
|
|
||||||
|
of_get_mac_address(ar->dev->of_node, ar->mac_addr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user