wireless: Use eth_random_addr
authorJoe Perches <joe@perches.com>
Thu, 12 Jul 2012 19:33:08 +0000 (19:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 05:38:28 +0000 (22:38 -0700)
Convert the existing uses of random_ether_addr to
the new eth_random_addr.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Hin-Tak Leung <htl10@users.sourceforge.net>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/adm8211.c
drivers/net/wireless/p54/eeprom.c
drivers/net/wireless/rt2x00/rt2400pci.c
drivers/net/wireless/rt2x00/rt2500pci.c
drivers/net/wireless/rt2x00/rt2500usb.c
drivers/net/wireless/rt2x00/rt2800lib.c
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt73usb.c
drivers/net/wireless/rtl818x/rtl8180/dev.c
drivers/net/wireless/rtl818x/rtl8187/dev.c

index 97afcec2475956a7f3346bdaa23195803d25fd56..689a71c1af71b049e5f9cfa9ecfec806a4f678f3 100644 (file)
@@ -1854,7 +1854,7 @@ static int __devinit adm8211_probe(struct pci_dev *pdev,
        if (!is_valid_ether_addr(perm_addr)) {
                printk(KERN_WARNING "%s (adm8211): Invalid hwaddr in EEPROM!\n",
                       pci_name(pdev));
-               random_ether_addr(perm_addr);
+               eth_random_addr(perm_addr);
        }
        SET_IEEE80211_PERM_ADDR(dev, perm_addr);
 
index 636daf2860cc5bdde7d4f91bcb1899decf43e1e2..14037092ba89da99ddf5481a56f730ac6866aa25 100644 (file)
@@ -857,7 +857,7 @@ good_eeprom:
 
                wiphy_warn(dev->wiphy,
                           "Invalid hwaddr! Using randomly generated MAC addr\n");
-               random_ether_addr(perm_addr);
+               eth_random_addr(perm_addr);
                SET_IEEE80211_PERM_ADDR(dev, perm_addr);
        }
 
index 5e6b5014316591114884536de8c349e7a2ec0b4b..8b9dbd76a25255634ad79338223739c939429d26 100644 (file)
@@ -1455,7 +1455,7 @@ static int rt2400pci_validate_eeprom(struct rt2x00_dev *rt2x00dev)
         */
        mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0);
        if (!is_valid_ether_addr(mac)) {
-               random_ether_addr(mac);
+               eth_random_addr(mac);
                EEPROM(rt2x00dev, "MAC: %pM\n", mac);
        }
 
index 136b849f11b5c911d9d83285a139b68cc1133396..d2cf8a4bc8b52fd985f4720df6bc20a9269069c3 100644 (file)
@@ -1585,7 +1585,7 @@ static int rt2500pci_validate_eeprom(struct rt2x00_dev *rt2x00dev)
         */
        mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0);
        if (!is_valid_ether_addr(mac)) {
-               random_ether_addr(mac);
+               eth_random_addr(mac);
                EEPROM(rt2x00dev, "MAC: %pM\n", mac);
        }
 
index 669aecdb411d38dccd179814a1fcb3a4158b4160..3aae36bb0a9e9f99cf89705bc2dca5022109824a 100644 (file)
@@ -1352,7 +1352,7 @@ static int rt2500usb_validate_eeprom(struct rt2x00_dev *rt2x00dev)
         */
        mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0);
        if (!is_valid_ether_addr(mac)) {
-               random_ether_addr(mac);
+               eth_random_addr(mac);
                EEPROM(rt2x00dev, "MAC: %pM\n", mac);
        }
 
index e76f03c9b46814bff374ee07d3236aeb0ed0daa9..88455b1b9fe05b299aff2cc667d3d90e7822855a 100644 (file)
@@ -4335,7 +4335,7 @@ int rt2800_validate_eeprom(struct rt2x00_dev *rt2x00dev)
         */
        mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0);
        if (!is_valid_ether_addr(mac)) {
-               random_ether_addr(mac);
+               eth_random_addr(mac);
                EEPROM(rt2x00dev, "MAC: %pM\n", mac);
        }
 
index ee22bd74579d7326373af68f6f3c0a4a879e3010..f32259686b45778b77630328e54e2c1298b18a84 100644 (file)
@@ -2415,7 +2415,7 @@ static int rt61pci_validate_eeprom(struct rt2x00_dev *rt2x00dev)
         */
        mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0);
        if (!is_valid_ether_addr(mac)) {
-               random_ether_addr(mac);
+               eth_random_addr(mac);
                EEPROM(rt2x00dev, "MAC: %pM\n", mac);
        }
 
index 77ccbbc7da411ba89a3acf3dbd0b338a887cdd7d..ba6e434b859d66506c26c5f05b7d5a569403c9d9 100644 (file)
@@ -1770,7 +1770,7 @@ static int rt73usb_validate_eeprom(struct rt2x00_dev *rt2x00dev)
         */
        mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0);
        if (!is_valid_ether_addr(mac)) {
-               random_ether_addr(mac);
+               eth_random_addr(mac);
                EEPROM(rt2x00dev, "MAC: %pM\n", mac);
        }
 
index 3b505395d869c7987544794572969a1abaa68d16..aceaf689f73704d5eba60e2d17478ee620999392 100644 (file)
@@ -1078,7 +1078,7 @@ static int __devinit rtl8180_probe(struct pci_dev *pdev,
        if (!is_valid_ether_addr(mac_addr)) {
                printk(KERN_WARNING "%s (rtl8180): Invalid hwaddr! Using"
                       " randomly generated MAC addr\n", pci_name(pdev));
-               random_ether_addr(mac_addr);
+               eth_random_addr(mac_addr);
        }
        SET_IEEE80211_PERM_ADDR(dev, mac_addr);
 
index 4fb1ca1b86b972ab347bbfe4714f78003b01c3e5..71a30b026089eddf6bf08658cf7e3f628992dbc5 100644 (file)
@@ -1486,7 +1486,7 @@ static int __devinit rtl8187_probe(struct usb_interface *intf,
        if (!is_valid_ether_addr(mac_addr)) {
                printk(KERN_WARNING "rtl8187: Invalid hwaddr! Using randomly "
                       "generated MAC address\n");
-               random_ether_addr(mac_addr);
+               eth_random_addr(mac_addr);
        }
        SET_IEEE80211_PERM_ADDR(dev, mac_addr);