rt2x00: Add 5GHz support for RF3052 devices
PATCH 1/1 rt2x00: Add 5GHz support for RF3052 devices
According to the Ralink drivers, the RF3052 chipset supports the 5GHz band. Update channel initialization to add the corresponding channels for this chip.
--- drivers/net/wireless/rt2x00/rt2800lib.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-)
drivers/net/wireless/rt2x00/rt2800lib.c +5 -4
@@ -2223,7 +2223,7 @@ EXPORT_SYMBOL_GPL(rt2800_init_eeprom);/* * RF value list for rt28x0 -* Supports: 2.4 GHz (all) & 5.2 GHz (RF2850 & RF2750) +* Supports: 2.4 GHz (all) & 5.2 GHz (RF2850, RF2750 & RF3052) */ static const struct rf_channel rf_vals[] = { {1 ,0x18402ecc ,0x184c0786 ,0x1816b455 ,0x1800510b },
@@ -2355,11 +2355,12 @@ int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) spec->supported_rates =SUPPORT_RATE_CCK |SUPPORT_RATE_OFDM ;if (rt2x00_rf (rt2x00dev,RF2820 ) || -rt2x00_rf (rt2x00dev,RF2720 ) || -rt2x00_rf (rt2x00dev,RF3052 )) { +rt2x00_rf (rt2x00dev,RF2720 )) { spec->num_channels =14 ; spec->channels = rf_vals; - }else if (rt2x00_rf (rt2x00dev,RF2850 ) ||rt2x00_rf (rt2x00dev,RF2750 )) { + }else if (rt2x00_rf (rt2x00dev,RF2850 ) || +rt2x00_rf (rt2x00dev,RF2750 ) || +rt2x00_rf (rt2x00dev,RF3052 )) { spec->supported_bands |=SUPPORT_BAND_5GHZ ; spec->num_channels =ARRAY_SIZE (rf_vals); spec->channels = rf_vals;
Signature · 1 line
1.6.6.1
Quoted 5 lines · Ivo van Doorn
According to the Ralink drivers, the RF3052 chipset supports the 5GHz band. Update channel initialization to add the corresponding channels for this chip.
Signed-off-by Ivo van Doorn <[email protected]>
Actually, I believe that this is not correct (sorry I don't have the Ralink driver at hand at the moment, nor the rt2x00 tree). AFAIK the RF3052 needs the same initialization as for RF3020, RF3021, RF3022, etc extended with the correct values for
5GHz band.
So, NAK for this patch.
Also, please keep in mind that for proper RT3572 support more needs to be done, also in the register, BPP, and RFCSR initializations.
Quoted 41 lines
---
drivers/net/wireless/rt2x00/rt2800lib.c | 9 +++++----1 files changed, 5 insertions(+), 4 deletions(-)drivers/net/wireless/rt2x00/rt2800lib.c +1
-1@@ -2223,7 +2223,7 @@ EXPORT_SYMBOL_GPL(rt2800_init_eeprom); /* * RF value list for rt28x0 - * Supports: 2.4 GHz (all) & 5.2 GHz (RF2850 & RF2750) + * Supports: 2.4 GHz (all) & 5.2 GHz (RF2850, RF2750 & RF3052) */ static const struct rf_channel rf_vals[] = { { 1, 0x18402ecc, 0x184c0786, 0x1816b455, 0x1800510b },@@ -2355,11 +2355,12 @@ int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) spec->supported_rates = SUPPORT_RATE_CCK | SUPPORT_RATE_OFDM;if (
rt2x00_rf(rt2x00dev, RF2820)||
-rt2x00_rf(rt2x00dev, RF2720)||
-rt2x00_rf(rt2x00dev, RF3052)) {
+rt2x00_rf(rt2x00dev, RF2720)) {
spec->num_channels = 14;
spec->channels =rf_vals;- } else if (rt2x00_rf(rt2x00dev, RF2850) || rt2x00_rf(rt2x00dev, RF2750)) { + } else if (rt2x00_rf(rt2x00dev, RF2850) ||+ rt2x00_rf(rt2x00dev, RF2750) ||
+ rt2x00_rf(rt2x00dev, RF3052)) {spec->supported_bands|=SUPPORT_BAND_5GHZ;spec->num_channels=ARRAY_SIZE(rf_vals);spec->channels=rf_vals;
--
1.6.6.1--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Gertjan van Wingerde
Quoted 5 lines · Ivo van Doorn
According to the Ralink drivers, the RF3052 chipset supports the 5GHz band. Update channel initialization to add the corresponding channels for this chip.
Signed-off-by Ivo van Doorn <[email protected]>Actually, I believe that this is not correct (sorry I don't have the Ralink driver at hand at the moment, nor the rt2x00 tree).
Well the original Ralink driver does state this device is a 5GHz device.
Quoted 3 lines
AFAIK the RF3052 needs the same initialization as for RF3020, RF3021, RF3022, etc extended with the correct values for
5GHz band.
RF3020 and RF3021 are 2.4GHz devices.
Quoted 4 lines
So, NAK for this patch.
Also, please keep in mind that for proper RT3572 support more needs to be done, also in the register, BPP, and RFCSR initializations.
It could be that the initialization of RF3052 is incomplete, however that is not limited to the 5GHz feature, but for both bands. Note that the difference in initialization
only exists for settings the antenna and channel which already detect if the initialization
should be done on the 2.4 or 5 GHz band.
So this argument shouldn't block this patch...
Ivo
John,
Please drop this patch. I just talked with Gertjan and I will be sending an updated patch in a few minutes.
Ivo
Quoted 35 lines · Ivo Van Doorn
Quoted 9 lines · Gertjan van Wingerde
Quoted 5 lines · Ivo van Doorn
According to the Ralink drivers, the RF3052 chipset supports the 5GHz band. Update channel initialization to add the corresponding channels for this chip.
Signed-off-by Ivo van Doorn <[email protected]>Actually, I believe that this is not correct (sorry I don't have the Ralink driver at hand at the moment, nor the rt2x00 tree).
Well the original Ralink driver does state this device is a 5GHz device.
Quoted 3 lines
AFAIK the RF3052 needs the same initialization as for RF3020, RF3021, RF3022, etc extended with the correct values for
5GHz band.RF3020 and RF3021 are 2.4GHz devices.
Quoted 4 lines
So, NAK for this patch.
Also, please keep in mind that for proper RT3572 support more needs to be done, also in the register, BPP, and RFCSR initializations.
It could be that the initialization of RF3052 is incomplete, however that is not limited to the 5GHz feature, but for both bands. Note that the difference in initialization
only exists for settings the antenna and channel which already detect if the initialization
should be done on the 2.4 or 5 GHz band.
So this argument shouldn't block this patch...Ivo