diff options
Diffstat (limited to 'drivers/net/wireless/ath5k/attach.c')
-rw-r--r-- | drivers/net/wireless/ath5k/attach.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath5k/attach.c b/drivers/net/wireless/ath5k/attach.c index 51d569883cdd..dea378f76731 100644 --- a/drivers/net/wireless/ath5k/attach.c +++ b/drivers/net/wireless/ath5k/attach.c | |||
@@ -106,7 +106,7 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc, u8 mac_version) | |||
106 | { | 106 | { |
107 | struct ath5k_hw *ah; | 107 | struct ath5k_hw *ah; |
108 | struct pci_dev *pdev = sc->pdev; | 108 | struct pci_dev *pdev = sc->pdev; |
109 | u8 mac[ETH_ALEN]; | 109 | u8 mac[ETH_ALEN] = {}; |
110 | int ret; | 110 | int ret; |
111 | u32 srev; | 111 | u32 srev; |
112 | 112 | ||
@@ -317,15 +317,15 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc, u8 mac_version) | |||
317 | goto err_free; | 317 | goto err_free; |
318 | } | 318 | } |
319 | 319 | ||
320 | /* Set MAC address */ | 320 | if (srev >= AR5K_SREV_AR2414) { |
321 | ret = ath5k_eeprom_read_mac(ah, mac); | 321 | ah->ah_combined_mic = true; |
322 | if (ret) { | 322 | AR5K_REG_ENABLE_BITS(ah, AR5K_MISC_MODE, |
323 | ATH5K_ERR(sc, "unable to read address from EEPROM: 0x%04x\n", | 323 | AR5K_MISC_MODE_COMBINED_MIC); |
324 | sc->pdev->device); | ||
325 | goto err_free; | ||
326 | } | 324 | } |
327 | 325 | ||
326 | /* MAC address is cleared until add_interface */ | ||
328 | ath5k_hw_set_lladdr(ah, mac); | 327 | ath5k_hw_set_lladdr(ah, mac); |
328 | |||
329 | /* Set BSSID to bcast address: ff:ff:ff:ff:ff:ff for now */ | 329 | /* Set BSSID to bcast address: ff:ff:ff:ff:ff:ff for now */ |
330 | memset(ah->ah_bssid, 0xff, ETH_ALEN); | 330 | memset(ah->ah_bssid, 0xff, ETH_ALEN); |
331 | ath5k_hw_set_associd(ah, ah->ah_bssid, 0); | 331 | ath5k_hw_set_associd(ah, ah->ah_bssid, 0); |