Message ID | 20250324-ath11k-nvmem-v1-1-d82bdf72820e@outlook.com |
---|---|
State | New |
Headers | show |
Series | wifi: ath11k: support fetching mac address from nvmem | expand |
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 97816916abac..49af6b9fc867 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -9,6 +9,7 @@ #include <linux/etherdevice.h> #include <linux/bitfield.h> #include <linux/inetdevice.h> +#include <linux/of_net.h> #include <net/if_inet6.h> #include <net/ipv6.h> @@ -10379,7 +10380,7 @@ int ath11k_mac_register(struct ath11k_base *ab) if (ret) return ret; - device_get_mac_address(ab->dev, mac_addr); + of_get_mac_address(ab->dev->of_node, mac_addr); for (i = 0; i < ab->num_radios; i++) { pdev = &ab->pdevs[i];