diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2400pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index 38e2188937c5..398c20105c81 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -1362,8 +1362,10 @@ static int rt2400pci_validate_eeprom(struct rt2x00_dev *rt2x00dev) | |||
1362 | */ | 1362 | */ |
1363 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); | 1363 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); |
1364 | if (!is_valid_ether_addr(mac)) { | 1364 | if (!is_valid_ether_addr(mac)) { |
1365 | DECLARE_MAC_BUF(macbuf); | ||
1366 | |||
1365 | random_ether_addr(mac); | 1367 | random_ether_addr(mac); |
1366 | EEPROM(rt2x00dev, "MAC: " MAC_FMT "\n", MAC_ARG(mac)); | 1368 | EEPROM(rt2x00dev, "MAC: %s\n", print_mac(macbuf, mac)); |
1367 | } | 1369 | } |
1368 | 1370 | ||
1369 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); | 1371 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); |