diff --git a/u-boot/cpu/mips/ar7240/ag7240.c b/u-boot/cpu/mips/ar7240/ag7240.c index c270a06293..df9f306d41 100644 --- a/u-boot/cpu/mips/ar7240/ag7240.c +++ b/u-boot/cpu/mips/ar7240/ag7240.c @@ -483,7 +483,7 @@ static void ag7240_get_ethaddr(struct eth_device *dev) return; } /* Use fixed address if the above address is invalid */ - if (mac[0] != 0x00 || (mac[0] == 0xff && mac[5] == 0xff) || + if ((mac[0] == 0xff) || (mac[1] == 0x00 && mac[2] == 0x00 && mac[3] == 0x00 && mac[4] == 0x00)) { #else