diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index f6115c626fa7..e8d63aaab7bc 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1509,8 +1509,11 @@ static int rt2500pci_validate_eeprom(struct rt2x00_dev *rt2x00dev) | |||
1509 | */ | 1509 | */ |
1510 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); | 1510 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); |
1511 | if (!is_valid_ether_addr(mac)) { | 1511 | if (!is_valid_ether_addr(mac)) { |
1512 | DECLARE_MAC_BUF(macbuf); | ||
1513 | |||
1512 | random_ether_addr(mac); | 1514 | random_ether_addr(mac); |
1513 | EEPROM(rt2x00dev, "MAC: " MAC_FMT "\n", MAC_ARG(mac)); | 1515 | EEPROM(rt2x00dev, "MAC: %s\n", |
1516 | print_mac(macbuf, mac)); | ||
1514 | } | 1517 | } |
1515 | 1518 | ||
1516 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); | 1519 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); |