diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 4 |
5 files changed, 5 insertions, 16 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index 08cb9eec16a6..96eaf5f4dc68 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -1313,10 +1313,8 @@ static int rt2400pci_validate_eeprom(struct rt2x00_dev *rt2x00dev) | |||
1313 | */ | 1313 | */ |
1314 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); | 1314 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); |
1315 | if (!is_valid_ether_addr(mac)) { | 1315 | if (!is_valid_ether_addr(mac)) { |
1316 | DECLARE_MAC_BUF(macbuf); | ||
1317 | |||
1318 | random_ether_addr(mac); | 1316 | random_ether_addr(mac); |
1319 | EEPROM(rt2x00dev, "MAC: %s\n", print_mac(macbuf, mac)); | 1317 | EEPROM(rt2x00dev, "MAC: %pM\n", mac); |
1320 | } | 1318 | } |
1321 | 1319 | ||
1322 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); | 1320 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); |
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index ef42cc04a2d7..8b772ab613e4 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1451,11 +1451,8 @@ static int rt2500pci_validate_eeprom(struct rt2x00_dev *rt2x00dev) | |||
1451 | */ | 1451 | */ |
1452 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); | 1452 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); |
1453 | if (!is_valid_ether_addr(mac)) { | 1453 | if (!is_valid_ether_addr(mac)) { |
1454 | DECLARE_MAC_BUF(macbuf); | ||
1455 | |||
1456 | random_ether_addr(mac); | 1454 | random_ether_addr(mac); |
1457 | EEPROM(rt2x00dev, "MAC: %s\n", | 1455 | EEPROM(rt2x00dev, "MAC: %pM\n", mac); |
1458 | print_mac(macbuf, mac)); | ||
1459 | } | 1456 | } |
1460 | 1457 | ||
1461 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); | 1458 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); |
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index d3bf7bba611a..d19bee43861d 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1319,10 +1319,8 @@ static int rt2500usb_validate_eeprom(struct rt2x00_dev *rt2x00dev) | |||
1319 | */ | 1319 | */ |
1320 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); | 1320 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); |
1321 | if (!is_valid_ether_addr(mac)) { | 1321 | if (!is_valid_ether_addr(mac)) { |
1322 | DECLARE_MAC_BUF(macbuf); | ||
1323 | |||
1324 | random_ether_addr(mac); | 1322 | random_ether_addr(mac); |
1325 | EEPROM(rt2x00dev, "MAC: %s\n", print_mac(macbuf, mac)); | 1323 | EEPROM(rt2x00dev, "MAC: %pM\n", mac); |
1326 | } | 1324 | } |
1327 | 1325 | ||
1328 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); | 1326 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index a461620b489f..45f69f83552c 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -2175,10 +2175,8 @@ static int rt61pci_validate_eeprom(struct rt2x00_dev *rt2x00dev) | |||
2175 | */ | 2175 | */ |
2176 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); | 2176 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); |
2177 | if (!is_valid_ether_addr(mac)) { | 2177 | if (!is_valid_ether_addr(mac)) { |
2178 | DECLARE_MAC_BUF(macbuf); | ||
2179 | |||
2180 | random_ether_addr(mac); | 2178 | random_ether_addr(mac); |
2181 | EEPROM(rt2x00dev, "MAC: %s\n", print_mac(macbuf, mac)); | 2179 | EEPROM(rt2x00dev, "MAC: %pM\n", mac); |
2182 | } | 2180 | } |
2183 | 2181 | ||
2184 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); | 2182 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 934f8e03c5aa..336fecb04c46 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -1781,10 +1781,8 @@ static int rt73usb_validate_eeprom(struct rt2x00_dev *rt2x00dev) | |||
1781 | */ | 1781 | */ |
1782 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); | 1782 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); |
1783 | if (!is_valid_ether_addr(mac)) { | 1783 | if (!is_valid_ether_addr(mac)) { |
1784 | DECLARE_MAC_BUF(macbuf); | ||
1785 | |||
1786 | random_ether_addr(mac); | 1784 | random_ether_addr(mac); |
1787 | EEPROM(rt2x00dev, "MAC: %s\n", print_mac(macbuf, mac)); | 1785 | EEPROM(rt2x00dev, "MAC: %pM\n", mac); |
1788 | } | 1786 | } |
1789 | 1787 | ||
1790 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); | 1788 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); |