lan78xx.c (7731b8bc94e599c9a79e428f3359ff2c34b7576a) lan78xx.c (6c1f0a1ffb7c2b0501521b9fc1f53b4109f1791b)
1/*
2 * Copyright (C) 2015 Microchip Technology
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *

--- 1706 unchanged lines hidden (view full) ---

1715 (lan78xx_read_otp(dev, EEPROM_MAC_OFFSET,
1716 ETH_ALEN, addr) == 0)) &&
1717 is_valid_ether_addr(addr)) {
1718 /* eeprom values are valid so use them */
1719 netif_dbg(dev, ifup, dev->net,
1720 "MAC address read from EEPROM");
1721 } else {
1722 /* generate random MAC */
1/*
2 * Copyright (C) 2015 Microchip Technology
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *

--- 1706 unchanged lines hidden (view full) ---

1715 (lan78xx_read_otp(dev, EEPROM_MAC_OFFSET,
1716 ETH_ALEN, addr) == 0)) &&
1717 is_valid_ether_addr(addr)) {
1718 /* eeprom values are valid so use them */
1719 netif_dbg(dev, ifup, dev->net,
1720 "MAC address read from EEPROM");
1721 } else {
1722 /* generate random MAC */
1723 random_ether_addr(addr);
1723 eth_random_addr(addr);
1724 netif_dbg(dev, ifup, dev->net,
1725 "MAC address set to random addr");
1726 }
1727
1728 addr_lo = addr[0] | (addr[1] << 8) |
1729 (addr[2] << 16) | (addr[3] << 24);
1730 addr_hi = addr[4] | (addr[5] << 8);
1731

--- 2446 unchanged lines hidden ---
1724 netif_dbg(dev, ifup, dev->net,
1725 "MAC address set to random addr");
1726 }
1727
1728 addr_lo = addr[0] | (addr[1] << 8) |
1729 (addr[2] << 16) | (addr[3] << 24);
1730 addr_hi = addr[4] | (addr[5] << 8);
1731

--- 2446 unchanged lines hidden ---