aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/attach.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2018-03-21 03:32:52 -0700
committerKalle Valo <kvalo@codeaurora.org>2018-03-29 12:10:26 +0300
commita72c92629108bb8ad756f31b74791c51e1de2af4 (patch)
tree4b6838e857bacd9673173f7700389cf3f62a3d0a /drivers/net/wireless/ath/ath5k/attach.c
parentath10k: fix vdev stats for 10.4 firmware (diff)
downloadlinux-dev-a72c92629108bb8ad756f31b74791c51e1de2af4.tar.xz
linux-dev-a72c92629108bb8ad756f31b74791c51e1de2af4.zip
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 '')
-rw-r--r--drivers/net/wireless/ath/ath5k/attach.c2
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);