aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt61pci.c
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-02-17 11:31:48 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:37:22 -0500
commitac1aa7e4f3c73ecb09fddf59c1924530155d9359 (patch)
treedfa5a58b71f39a9923e7b25f97121bf674e9c421 /drivers/net/wireless/rt2x00/rt61pci.c
parentd3f5feaa5196049906f34c299fba8e3eda9c8646 (diff)
rt2x00: Send frames out with configured TX power
mac80211 sends the txpower to use during config(), we already store it in the rt2x00_dev structure. When writing the descriptor correctly initialize the txpower field with this value to make sure all frames are send out with the correct tx power. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt61pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 6e7cbe8f4e32..d10273b744e4 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -1504,10 +1504,8 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1504 rt2x00_desc_write(txd, 2, word); 1504 rt2x00_desc_write(txd, 2, word);
1505 1505
1506 rt2x00_desc_read(txd, 5, &word); 1506 rt2x00_desc_read(txd, 5, &word);
1507/* XXX: removed for now
1508 rt2x00_set_field32(&word, TXD_W5_TX_POWER, 1507 rt2x00_set_field32(&word, TXD_W5_TX_POWER,
1509 TXPOWER_TO_DEV(control->power_level)); 1508 TXPOWER_TO_DEV(rt2x00dev->tx_power));
1510 */
1511 rt2x00_set_field32(&word, TXD_W5_WAITING_DMA_DONE_INT, 1); 1509 rt2x00_set_field32(&word, TXD_W5_WAITING_DMA_DONE_INT, 1);
1512 rt2x00_desc_write(txd, 5, word); 1510 rt2x00_desc_write(txd, 5, word);
1513 1511