aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@gmail.com>2010-06-29 15:44:50 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-30 15:00:51 -0400
commitec2d1791a04e6f25cc55f87ddf6eaa51b2a811f7 (patch)
tree5692b5a6d379ecf3ce881975a7b5bae7a45d51cf /drivers/net/wireless/rt2x00
parent20f8b139a3834db1545454b4392aa73dcf595c9f (diff)
rt2x00: Align rt2800 EEPROM validation to Ralink vendor driver.
Align with the latest versions of the Ralink legacy driver(s). Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com> 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')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800lib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index 14ff706419e4..f25997e9a084 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -2185,6 +2185,8 @@ int rt2800_validate_eeprom(struct rt2x00_dev *rt2x00dev)
2185 rt2x00_set_field16(&word, EEPROM_NIC_WPS_PBC, 0); 2185 rt2x00_set_field16(&word, EEPROM_NIC_WPS_PBC, 0);
2186 rt2x00_set_field16(&word, EEPROM_NIC_BW40M_BG, 0); 2186 rt2x00_set_field16(&word, EEPROM_NIC_BW40M_BG, 0);
2187 rt2x00_set_field16(&word, EEPROM_NIC_BW40M_A, 0); 2187 rt2x00_set_field16(&word, EEPROM_NIC_BW40M_A, 0);
2188 rt2x00_set_field16(&word, EEPROM_NIC_ANT_DIVERSITY, 0);
2189 rt2x00_set_field16(&word, EEPROM_NIC_DAC_TEST, 0);
2188 rt2x00_eeprom_write(rt2x00dev, EEPROM_NIC, word); 2190 rt2x00_eeprom_write(rt2x00dev, EEPROM_NIC, word);
2189 EEPROM(rt2x00dev, "NIC: 0x%04x\n", word); 2191 EEPROM(rt2x00dev, "NIC: 0x%04x\n", word);
2190 } 2192 }
@@ -2192,6 +2194,10 @@ int rt2800_validate_eeprom(struct rt2x00_dev *rt2x00dev)
2192 rt2x00_eeprom_read(rt2x00dev, EEPROM_FREQ, &word); 2194 rt2x00_eeprom_read(rt2x00dev, EEPROM_FREQ, &word);
2193 if ((word & 0x00ff) == 0x00ff) { 2195 if ((word & 0x00ff) == 0x00ff) {
2194 rt2x00_set_field16(&word, EEPROM_FREQ_OFFSET, 0); 2196 rt2x00_set_field16(&word, EEPROM_FREQ_OFFSET, 0);
2197 rt2x00_eeprom_write(rt2x00dev, EEPROM_FREQ, word);
2198 EEPROM(rt2x00dev, "Freq: 0x%04x\n", word);
2199 }
2200 if ((word & 0xff00) == 0xff00) {
2195 rt2x00_set_field16(&word, EEPROM_FREQ_LED_MODE, 2201 rt2x00_set_field16(&word, EEPROM_FREQ_LED_MODE,
2196 LED_MODE_TXRX_ACTIVITY); 2202 LED_MODE_TXRX_ACTIVITY);
2197 rt2x00_set_field16(&word, EEPROM_FREQ_LED_POLARITY, 0); 2203 rt2x00_set_field16(&word, EEPROM_FREQ_LED_POLARITY, 0);
@@ -2199,7 +2205,7 @@ int rt2800_validate_eeprom(struct rt2x00_dev *rt2x00dev)
2199 rt2x00_eeprom_write(rt2x00dev, EEPROM_LED1, 0x5555); 2205 rt2x00_eeprom_write(rt2x00dev, EEPROM_LED1, 0x5555);
2200 rt2x00_eeprom_write(rt2x00dev, EEPROM_LED2, 0x2221); 2206 rt2x00_eeprom_write(rt2x00dev, EEPROM_LED2, 0x2221);
2201 rt2x00_eeprom_write(rt2x00dev, EEPROM_LED3, 0xa9f8); 2207 rt2x00_eeprom_write(rt2x00dev, EEPROM_LED3, 0xa9f8);
2202 EEPROM(rt2x00dev, "Freq: 0x%04x\n", word); 2208 EEPROM(rt2x00dev, "Led Mode: 0x%04x\n", word);
2203 } 2209 }
2204 2210
2205 /* 2211 /*