ar71xx: use ETH_ALEN for consistency
authorJohn Crispin <john@openwrt.org>
Mon, 1 Sep 2014 13:21:56 +0000 (13:21 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 1 Sep 2014 13:21:56 +0000 (13:21 +0000)
Signed-off-by: Forest Crossman <cyrozap@gmail.com>
Backport of r42280

SVN-Revision: 42381

target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c

index ca36e36114463519dfdd4e3721bfe19ca2e2afaf..aa2e7f7f4e9e96bfbabc8e288f0189d5a8bb738c 100644 (file)
@@ -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) {