[OpenWrt-Devel] [PATCH] ar71xx: use ETH_ALEN for consistency

Forest Crossman cyrozap at gmail.com
Wed Aug 20 18:43:20 EDT 2014


Signed-off-by: Forest Crossman <cyrozap at gmail.com>
---
 target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c
index ca36e36..aa2e7f7 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c
@@ -145,9 +145,9 @@ static void __init esr900_setup(void)
 {
 	const char *config = (char *) KSEG1ADDR(ESR900_CONFIG_ADDR);
 	u8 *art = (u8 *) KSEG1ADDR(ESR900_CALDATA_ADDR);
-	u8 lan_mac[6];
-	u8 wlan0_mac[6];
-	u8 wlan1_mac[6];
+	u8 lan_mac[ETH_ALEN];
+	u8 wlan0_mac[ETH_ALEN];
+	u8 wlan1_mac[ETH_ALEN];
 
 	if (ath79_nvram_parse_mac_addr(config, ESR900_CONFIG_SIZE,
 				       "ethaddr=", lan_mac) == 0) {
-- 
1.9.2
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list