diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/attach.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/attach.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c index 42284445b75e..dd4099a2ff15 100644 --- a/drivers/net/wireless/ath/ath5k/attach.c +++ b/drivers/net/wireless/ath/ath5k/attach.c | |||
@@ -113,7 +113,6 @@ int ath5k_hw_attach(struct ath5k_softc *sc) | |||
113 | /* | 113 | /* |
114 | * HW information | 114 | * HW information |
115 | */ | 115 | */ |
116 | ah->ah_op_mode = NL80211_IFTYPE_STATION; | ||
117 | ah->ah_radar.r_enabled = AR5K_TUNE_RADAR_ALERT; | 116 | ah->ah_radar.r_enabled = AR5K_TUNE_RADAR_ALERT; |
118 | ah->ah_turbo = false; | 117 | ah->ah_turbo = false; |
119 | ah->ah_txpower.txp_tpc = AR5K_TUNE_TPC_TXPOWER; | 118 | ah->ah_txpower.txp_tpc = AR5K_TUNE_TPC_TXPOWER; |
@@ -123,6 +122,7 @@ int ath5k_hw_attach(struct ath5k_softc *sc) | |||
123 | ah->ah_cw_min = AR5K_TUNE_CWMIN; | 122 | ah->ah_cw_min = AR5K_TUNE_CWMIN; |
124 | ah->ah_limit_tx_retries = AR5K_INIT_TX_RETRY; | 123 | ah->ah_limit_tx_retries = AR5K_INIT_TX_RETRY; |
125 | ah->ah_software_retry = false; | 124 | ah->ah_software_retry = false; |
125 | ah->ah_ant_mode = AR5K_ANTMODE_DEFAULT; | ||
126 | 126 | ||
127 | /* | 127 | /* |
128 | * Find the mac version | 128 | * Find the mac version |
@@ -148,7 +148,6 @@ int ath5k_hw_attach(struct ath5k_softc *sc) | |||
148 | /* Get MAC, PHY and RADIO revisions */ | 148 | /* Get MAC, PHY and RADIO revisions */ |
149 | ah->ah_mac_srev = srev; | 149 | ah->ah_mac_srev = srev; |
150 | ah->ah_mac_version = AR5K_REG_MS(srev, AR5K_SREV_VER); | 150 | ah->ah_mac_version = AR5K_REG_MS(srev, AR5K_SREV_VER); |
151 | ah->ah_mac_revision = AR5K_REG_MS(srev, AR5K_SREV_REV); | ||
152 | ah->ah_phy_revision = ath5k_hw_reg_read(ah, AR5K_PHY_CHIP_ID) & | 151 | ah->ah_phy_revision = ath5k_hw_reg_read(ah, AR5K_PHY_CHIP_ID) & |
153 | 0xffffffff; | 152 | 0xffffffff; |
154 | ah->ah_radio_5ghz_revision = ath5k_hw_radio_revision(ah, | 153 | ah->ah_radio_5ghz_revision = ath5k_hw_radio_revision(ah, |
@@ -327,7 +326,7 @@ int ath5k_hw_attach(struct ath5k_softc *sc) | |||
327 | /* Set BSSID to bcast address: ff:ff:ff:ff:ff:ff for now */ | 326 | /* Set BSSID to bcast address: ff:ff:ff:ff:ff:ff for now */ |
328 | memcpy(common->curbssid, ath_bcast_mac, ETH_ALEN); | 327 | memcpy(common->curbssid, ath_bcast_mac, ETH_ALEN); |
329 | ath5k_hw_set_associd(ah); | 328 | ath5k_hw_set_associd(ah); |
330 | ath5k_hw_set_opmode(ah); | 329 | ath5k_hw_set_opmode(ah, sc->opmode); |
331 | 330 | ||
332 | ath5k_hw_rfgain_opt_init(ah); | 331 | ath5k_hw_rfgain_opt_init(ah); |
333 | 332 | ||