diff options
author | Joe Perches <joe@perches.com> | 2018-03-21 03:32:52 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-03-29 12:10:26 +0300 |
commit | a72c92629108bb8ad756f31b74791c51e1de2af4 (patch) | |
tree | 4b6838e857bacd9673173f7700389cf3f62a3d0a /drivers/net/wireless/ath/ath5k/attach.c | |
parent | 1b3fdb50f88195a9814a8301fad6325868881bb6 (diff) | |
download | linux-a72c92629108bb8ad756f31b74791c51e1de2af4.tar.bz2 |
ath: Remove unnecessary ath_bcast_mac and use eth_broadcast_addr
Remove the static array and use the generic routine to set the
Ethernet broadcast address.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/attach.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/attach.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c index 233054bd6b52..12d3a6c92ba4 100644 --- a/drivers/net/wireless/ath/ath5k/attach.c +++ b/drivers/net/wireless/ath/ath5k/attach.c @@ -327,7 +327,7 @@ int ath5k_hw_init(struct ath5k_hw *ah) ath5k_hw_set_lladdr(ah, zero_mac); /* Set BSSID to bcast address: ff:ff:ff:ff:ff:ff for now */ - memcpy(common->curbssid, ath_bcast_mac, ETH_ALEN); + eth_broadcast_addr(common->curbssid); ath5k_hw_set_bssid(ah); ath5k_hw_set_opmode(ah, ah->opmode); |