aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-09-01 13:21:56 +0000
committerJohn Crispin <blogic@openwrt.org>2014-09-01 13:21:56 +0000
commit3b42e85f76e793d43ca88f04ec71a589b2f45376 (patch)
tree168e71c06c95ceed0f118450f688435543a885a7
parent7018e949b0ba8db8b97f0b7a020b5ad709fee895 (diff)
downloadupstream-3b42e85f76e793d43ca88f04ec71a589b2f45376.tar.gz
upstream-3b42e85f76e793d43ca88f04ec71a589b2f45376.tar.bz2
upstream-3b42e85f76e793d43ca88f04ec71a589b2f45376.zip
ar71xx: use ETH_ALEN for consistency
Signed-off-by: Forest Crossman <cyrozap@gmail.com> Backport of r42280 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42381 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c6
1 files 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 ca36e36114..aa2e7f7f4e 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) {