summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath5k/phy.c
diff options
context:
space:
mode:
authorNick Kossifidis2008-02-28 20:50:50 +0100
committerJohn W. Linville2008-03-07 22:02:58 +0100
commit903b474efabab6a4ce697063c367afd8e2ad83f3 (patch)
treed7a7ab944a519122fcb958c01ed42cd2d8d91096 /drivers/net/wireless/ath5k/phy.c
parentath5k: Identify RF2413 and deal with PHY_SPENDING (diff)
downloadkernel-qcow2-linux-903b474efabab6a4ce697063c367afd8e2ad83f3.tar.gz
kernel-qcow2-linux-903b474efabab6a4ce697063c367afd8e2ad83f3.tar.xz
kernel-qcow2-linux-903b474efabab6a4ce697063c367afd8e2ad83f3.zip
ath5k: more RF2413 stuff
* Add AR5K_RF2413 to radio check during hw_reset so it doesn't complain * Write ah_phy_spending value we set during attach instead of checking each time for radio revision * Skip txpower setup for RF2413 because it can't transmit with it (weird thing is that RF5413 has no problem with it). Changes-licensed-under: ISC Signed-off-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu> Signed-off-by: John W. Linville <linville@tuxdriver.com>
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,
return -EINVAL;
}
+ /*
+ * RF2413 for some reason can't
+ * transmit anything if we call
+ * this funtion, so we skip it
+ * until we fix txpower.
+ */
+ if (ah->ah_radio == AR5K_RF2413)
+ return 0;
+
/* Reset TX power values */
memset(&ah->ah_txpower, 0, sizeof(ah->ah_txpower));
ah->ah_txpower.txp_tpc = tpc;