summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski <olek2@wp.pl>2023-05-06 20:39:59 +0200
committerAleksander Jan Bajkowski <olek2@wp.pl>2023-06-10 12:40:29 +0200
commit37c3d6105cfefedd0e5a2d1344418aa69932fcc6 (patch)
tree3e6185902654187c2d6716d3ff03a82482a6436d /target/linux/lantiq
parent6892603efa11603c6f365bee1cf94e98336d72aa (diff)
downloadopenwrt-37c3d6105cfefedd0e5a2d1344418aa69932fcc6.tar.gz
openwrt-37c3d6105cfefedd0e5a2d1344418aa69932fcc6.tar.bz2
openwrt-37c3d6105cfefedd0e5a2d1344418aa69932fcc6.zip
lantiq: replace random_ether_addr with eth_random_addr
Random_ether_addr() is a helper function which was kept for backward compatibility. It is available in the kernel from version 3.6 to 5.16. In newer kernel verions, it has been completely replaced by eth_random_addr(). There should be no functional changes. Ref: https://github.com/torvalds/linux/commit/ba530fea8ca1b57ee71d4e62f287a5d7ed92f789 Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Diffstat (limited to 'target/linux/lantiq')
-rw-r--r--target/linux/lantiq/patches-5.15/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/lantiq/patches-5.15/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch b/target/linux/lantiq/patches-5.15/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
index f7fbfdf9e4..be0f0bfccd 100644
--- a/target/linux/lantiq/patches-5.15/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
+++ b/target/linux/lantiq/patches-5.15/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
@@ -127,7 +127,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+
+ if (!is_valid_ether_addr(athxk_eeprom_mac)) {
+ dev_warn(&pdev->dev, "using random mac\n");
-+ random_ether_addr(athxk_eeprom_mac);
++ eth_random_addr(athxk_eeprom_mac);
+ }
+
+ if (!of_property_read_u32(np, "ath,mac-increment", &mac_inc))