aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath5k/phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath5k/phy.c')
-rw-r--r--drivers/net/wireless/ath5k/phy.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath5k/phy.c b/drivers/net/wireless/ath5k/phy.c
index f108b08ff4af..40efd4d3b54c 100644
--- a/drivers/net/wireless/ath5k/phy.c
+++ b/drivers/net/wireless/ath5k/phy.c
@@ -2178,6 +2178,15 @@ ath5k_hw_txpower(struct ath5k_hw *ah, struct ieee80211_channel *channel,
2178 return -EINVAL; 2178 return -EINVAL;
2179 } 2179 }
2180 2180
2181 /*
2182 * RF2413 for some reason can't
2183 * transmit anything if we call
2184 * this funtion, so we skip it
2185 * until we fix txpower.
2186 */
2187 if (ah->ah_radio == AR5K_RF2413)
2188 return 0;
2189
2181 /* Reset TX power values */ 2190 /* Reset TX power values */
2182 memset(&ah->ah_txpower, 0, sizeof(ah->ah_txpower)); 2191 memset(&ah->ah_txpower, 0, sizeof(ah->ah_txpower));
2183 ah->ah_txpower.txp_tpc = tpc; 2192 ah->ah_txpower.txp_tpc = tpc;