staging: Convert random_ether_addr to eth_random_addr
authorJoe Perches <joe@perches.com>
Sat, 23 Jun 2018 17:27:58 +0000 (10:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 13:14:01 +0000 (22:14 +0900)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c

index 21874e78d8a15a33ab181e810fa8805b42358d46..9d9a9e102bb8c6bfc55af7122b8273ab801ac29c 100644 (file)
@@ -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){