aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800.h5
-rw-r--r--drivers/net/wireless/rt2x00/rt2800lib.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800.h b/drivers/net/wireless/rt2x00/rt2800.h
index ec893721cc80..1c59dc6a3aa2 100644
--- a/drivers/net/wireless/rt2x00/rt2800.h
+++ b/drivers/net/wireless/rt2x00/rt2800.h
@@ -1566,6 +1566,11 @@ struct mac_iveiv_entry {
1566#define RFCSR12_TX_POWER FIELD8(0x1f) 1566#define RFCSR12_TX_POWER FIELD8(0x1f)
1567 1567
1568/* 1568/*
1569 * RFCSR 13:
1570 */
1571#define RFCSR13_TX_POWER FIELD8(0x1f)
1572
1573/*
1569 * RFCSR 15: 1574 * RFCSR 15:
1570 */ 1575 */
1571#define RFCSR15_TX_LO2_EN FIELD8(0x08) 1576#define RFCSR15_TX_LO2_EN FIELD8(0x08)
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index 867b6527a1fd..2b9be79fc77f 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -793,6 +793,11 @@ static void rt2800_config_channel_rf3xxx(struct rt2x00_dev *rt2x00dev,
793 TXPOWER_G_TO_DEV(info->tx_power1)); 793 TXPOWER_G_TO_DEV(info->tx_power1));
794 rt2800_rfcsr_write(rt2x00dev, 12, rfcsr); 794 rt2800_rfcsr_write(rt2x00dev, 12, rfcsr);
795 795
796 rt2800_rfcsr_read(rt2x00dev, 13, &rfcsr);
797 rt2x00_set_field8(&rfcsr, RFCSR13_TX_POWER,
798 TXPOWER_G_TO_DEV(info->tx_power2));
799 rt2800_rfcsr_write(rt2x00dev, 13, rfcsr);
800
796 rt2800_rfcsr_read(rt2x00dev, 23, &rfcsr); 801 rt2800_rfcsr_read(rt2x00dev, 23, &rfcsr);
797 rt2x00_set_field8(&rfcsr, RFCSR23_FREQ_OFFSET, rt2x00dev->freq_offset); 802 rt2x00_set_field8(&rfcsr, RFCSR23_FREQ_OFFSET, rt2x00dev->freq_offset);
798 rt2800_rfcsr_write(rt2x00dev, 23, rfcsr); 803 rt2800_rfcsr_write(rt2x00dev, 23, rfcsr);