diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2016-03-02 01:12:03 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 372419776a023f7f0eede837cd866c2d544ba4a4 (patch) | |
tree | b00fbb3b4dc7d11d57f547dfe7d3b4bed9b91422 /drivers/staging/rtl8192e | |
parent | 314e4be76e20f1d799ee386380623375b0555372 (diff) |
Staging: rtl8192e: Replace random_ether_addr with eth_random_addr
The macro random_ether_addr is calling the function eth_random_addr.
Therefore, the call to random_ether_addr can be replaced with
eth_random_addr.
Remove the wrapper function rtllib_randomize_cell and replace its
call with eth_random_addr as it is wrapping random_ether_addr.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/rtllib_softmac.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index bbc44652769c..cfab715495ad 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -2537,12 +2537,6 @@ void rtllib_wake_all_queues(struct rtllib_device *ieee) netif_tx_wake_all_queues(ieee->dev); } -inline void rtllib_randomize_cell(struct rtllib_device *ieee) -{ - - random_ether_addr(ieee->current_network.bssid); -} - /* called in user context only */ static void rtllib_start_master_bss(struct rtllib_device *ieee) { @@ -2633,7 +2627,7 @@ static void rtllib_start_ibss_wq(void *data) netdev_info(ieee->dev, "creating new IBSS cell\n"); ieee->current_network.channel = ieee->IbssStartChnl; if (!ieee->wap_set) - rtllib_randomize_cell(ieee); + eth_random_addr(ieee->current_network.bssid); if (ieee->modulation & RTLLIB_CCK_MODULATION) { |