@@ -1822,7 +1822,7 @@ static int __init mtk_init(struct net_device *dev)
/* If the mac address is invalid, use random mac address */
if (!is_valid_ether_addr(dev->dev_addr)) {
- random_ether_addr(dev->dev_addr);
+ eth_random_addr(dev->dev_addr);
dev_err(eth->dev, "generated random MAC address %pM\n",
dev->dev_addr);
dev->addr_assign_type = NET_ADDR_RANDOM;
@@ -2382,7 +2382,7 @@ static void ieee80211_start_ibss_wq(struct work_struct *work)
if (ieee->state == IEEE80211_NOLINK) {
printk("creating new IBSS cell\n");
if(!ieee->wap_set)
- random_ether_addr(ieee->current_network.bssid);
+ eth_random_addr(ieee->current_network.bssid);
if(ieee->modulation & IEEE80211_CCK_MODULATION){
random_ether_addr is a #define for eth_random_addr which is generally preferred in kernel code by ~3:1 Convert the uses of random_ether_addr to enable removing the #define Signed-off-by: Joe Perches <joe@perches.com> --- drivers/staging/mt7621-eth/mtk_eth_soc.c | 2 +- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)