[openwrt/openwrt] lantiq: replace random_ether_addr with eth_random_addr

LEDE Commits lede-commits at lists.infradead.org
Sat Jun 10 06:33:02 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/37c3d6105cfefedd0e5a2d1344418aa69932fcc6

commit 37c3d6105cfefedd0e5a2d1344418aa69932fcc6
Author: Aleksander Jan Bajkowski <olek2 at wp.pl>
AuthorDate: Sat May 6 20:39:59 2023 +0200

    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 at wp.pl>
---
 .../0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 at 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))




More information about the lede-commits mailing list