diff options
-rw-r--r-- | drivers/net/wireless/ath/ath5k/attach.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c index 1588401de3c..f781eeb5085 100644 --- a/drivers/net/wireless/ath/ath5k/attach.c +++ b/drivers/net/wireless/ath/ath5k/attach.c | |||
@@ -104,6 +104,7 @@ static int ath5k_hw_post(struct ath5k_hw *ah) | |||
104 | */ | 104 | */ |
105 | int ath5k_hw_init(struct ath5k_softc *sc) | 105 | int ath5k_hw_init(struct ath5k_softc *sc) |
106 | { | 106 | { |
107 | static const u8 zero_mac[ETH_ALEN] = { }; | ||
107 | struct ath5k_hw *ah = sc->ah; | 108 | struct ath5k_hw *ah = sc->ah; |
108 | struct ath_common *common = ath5k_hw_common(ah); | 109 | struct ath_common *common = ath5k_hw_common(ah); |
109 | struct pci_dev *pdev = sc->pdev; | 110 | struct pci_dev *pdev = sc->pdev; |
@@ -334,7 +335,7 @@ int ath5k_hw_init(struct ath5k_softc *sc) | |||
334 | } | 335 | } |
335 | 336 | ||
336 | /* MAC address is cleared until add_interface */ | 337 | /* MAC address is cleared until add_interface */ |
337 | ath5k_hw_set_lladdr(ah, (u8[ETH_ALEN]){}); | 338 | ath5k_hw_set_lladdr(ah, zero_mac); |
338 | 339 | ||
339 | /* Set BSSID to bcast address: ff:ff:ff:ff:ff:ff for now */ | 340 | /* Set BSSID to bcast address: ff:ff:ff:ff:ff:ff for now */ |
340 | memcpy(common->curbssid, ath_bcast_mac, ETH_ALEN); | 341 | memcpy(common->curbssid, ath_bcast_mac, ETH_ALEN); |