3.1.0 linux kernel+dual band for lynksys ae1000

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=6175

Andrew1/fkOlJ

25-08-2011 17:59:09

The linux kernel 3.1-rc3 (using CONFIG_RT2800USB_RT35XX)
successfully supports this device on the 2.4 GHZ band but
(1) Scanning on the 5Ghz band fails to find access points that are near by, and
(2) Attempts to set it to a channel in the 5GHZ band fail with, for ex
"iwconfig wlan0 channel 55
Error for wireless request "Set Frequency" (8B04)
SET failed on device wlan0 ; Invalid argument"

Does anyone know if
(a) The error is mine or 5GHZ is not supported in the kernel,
(b) If support for 5GHZ will be forthcoming in a future kernel (say 3.2)

PS linux kernel 3.0 did not support this device at all, so the 3.1 is a welcome improvement, although 5GHZ use is the reason that I purchased this devices.

Andrew1/fkOlJ

29-10-2011 21:54:24

The same situation now applies to the 3.1.0 kernel.
I notice that I have lots of views (84 at the moment) but no replies, except this .

Can anyone either
(i) Advise me as to how to get this to work on the 5GHZ band, or
(ii) Tell me how to contact the developers to ask them if they can include 5ghz support and, of course,
to thank them for all of the excellent and much appreciated work that they have done so far.

en1gma

30-10-2011 01:54:32

i have a wusb600n v2 (RT3572) chipset.
to my understanding that is exactly what you have?

let me know your exact OS and details and i can set mine up the same way in a VM

right now i have it working with debian squeeze (packet injection and monitor mode)
im not sure about wireless N
how can i tell?

i am currently installing debian 6 wheezy as i write this.
i am keeping my debian 6 squeeze the way it is though (im pretty sure its working perfect) only thing left to do with it is turn it into an AP/Master mode with hostapd (which i have no idea how to do)

anyhow let me know what i can do

one more thing i have been in #rt2x00 on irc quite abit
maybe we can chat in there real time if we can coordinate it right

Andrew1/fkOlJ

30-10-2011 22:31:26

Many thanks to en1gma for the offer of help.
I am running Gentoo Linux.
lsusb yields the following Bus 001 Device 004 ID 13b1002f Linksys AE1000 v1 802.11n [Ralink RT2870].


However the 3572 chipset is included as an option for the 2870 in the 3.1.0 kernel from kernel.org
In particular, I configure it as follows

<M> Ralink rt27xx/rt28xx/rt30xx (USB) support ? ?
? ? [ ] rt2800usb - Include support for rt33xx devices ? ?
? ?

en1gma

31-10-2011 05:07:20

strange
here is my 'lsusb'
"Bus 001 Device 002 ID 17370079 Linksys WUSB600N v2 Dual-Band Wireless-N Network Adapter [Ralink RT3572]"

we have different vendor and device ID`s
yours is the RT3572 chipset?

im going to install latest stable kernel in a minute.
i should be able to get similar results as you even if i stay in linux i think...
we are both going to be running same kernel from same spot right?
in gonna grab 3.1rc4
will let you know how it goes.

5ghz = "a" right?

Andrew1/fkOlJ

31-10-2011 16:43:40

[quote3gnimix4][/quote3gnimix4]5ghz = "a" right?[quote3gnimix4][/quote3gnimix4]

If I understand the question, the answer is no. 5GHZ can be any of b,g or n , just like 2.4 GHZ. "a" is somewhere around 3GHZ, and I have no equipment compatible with it. (There isn't much around anymore.)
The 5GHZ is a frequency.

iwlist scan results with the lynksys ae1000 and the 3.1.0 vanilla kernel
[quote3gnimix4][/quote3gnimix4]iwlist wlan0 scan
wlan0 Scan completed
Cell 01 - Address 687F74D5FBB1
Channel2
Frequency2.417 GHz (Channel 2)
Quality=70/70 Signal level=-25 dBm
Encryption keyon
ESSID"Peach2"
Bit Rates1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
ModeMaster
Extratsf=0000000004dc5ec6
Extra Last beacon 3108ms ago
[quote3gnimix4][/quote3gnimix4]


Whereas my wife's laptop WHICH DOES have a wireless card supporting 5ghz in linux yields

[quote3gnimix4][/quote3gnimix4]iwlist wlan0 scan
wlan0 Scan completed
Cell 01 - Address 687F74D5FBB1
Channel2
Frequency2.417 GHz (Channel 2)
Quality=44/70 Signal level=-66 dBm
Encryption keyon
ESSID"Peach2"
Bit Rates1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
ModeMaster

Cell 03 - Address 687F74D5FBB2
Channel52
Frequency5.26 GHz (Channel 52)
Quality=38/70 Signal level=-72 dBm
Encryption keyon
ESSID"Peach5"
Bit Rates6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
ModeMaster
[quote3gnimix4][/quote3gnimix4]

So you can see that my wife's laptop can detect cell 3 on Channel 52 Frequency 5.26GHZ ESSID"Peach5" whereas my computer with the
lynksys ae1000 can not.

Please let me know if I haven't understood your question.

[quote3gnimix4]yours is the RT3572 chipset?[quote3gnimix4][/quote3gnimix4][/quote3gnimix4]


lsusb reports it as 2870 BUT in the 3.1.0 kernel, RT3572 is an option within the 2870 kernel module.
wlan0 is created only if I configure the kernel with the 2870 module and the RT3572 option both chosen.
Thanks again for your interest in this matter.

PS What are you using for an access point?

en1gma

03-11-2011 03:10:12

channel 52?

what is that?


to my understanding (someone correct me if im wrong)
5GHz = "A" only

"B" = 2.4GHz
"G" = 2.4GHz but something was improbed.
"N" = 2.4GHz but WIDE BAND
"G" = +- 20MHz
"N" = +- 40MHz
that is why they allow MORE DATA

Andrew1/fkOlJ

03-11-2011 05:37:53

That is not my understanding of it, but then I am not an authority.

You might be interested in

http//en.wikipedia.org/wiki/List_of_WLAN_channels

en1gma

03-11-2011 15:32:53

the B, G and N graphical charts still show it as 2.4GHz

strange

Andrew1/fkOlJ

03-11-2011 17:11:53

The title of the graphical charts in http//en.wikipedia.org/wiki/List_of_WLAN_channels
is [quote1wdsds78][/quote1wdsds78] Non Overlapping Channels for 2.4GHZ WLAN[quote1wdsds78][/quote1wdsds78]
These charts do not claim to say anything about 5GHZ etc.
The tables contain more information; they
clearly indicate that "n" protocol is used in the 5GHZ band, as are "a", "h","j", and "n".
It is 5GHZ "n" that I am interested in. I have no idea what "h" and "j" are. I am not interested in "a".

jawilljr

04-11-2011 00:40:34

Andrew... I noticed the below that you posted above

[codekr33ma38]I am using the firmware that I downloaded from Ralink's linux site[/codekr33ma38]

The firmware on Ralink's site is outdated. It was updated by this commit[/urlkr33ma38]

Debian based users can get it [url=http://packages.debian.org/wheezy/all/firmware-ralink/downloadkr33ma38]from here[/urlkr33ma38]. It even works in Ubuntu.

Or you can download it [url=http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=tree;h=f825ff6aafe663b66c7334dcffefd45ade446647;hb=ae524638c277301a83daf126aaaf880738e2474bkr33ma38]from here.[/urlkr33ma38]

Just click on the "raw" link next to rt2870.bin and save it. Then copy it to "/lib/firmware'.

You can try it with your current kernel and see if it works. Me I am using compat-wireless-2011-10-31 and it is working great with my AE1000 device (rt3572)... with 5ghz and monitor mode.

BTW I don't know why... but in Linux, or at least Ubuntu the SSID's of the 2.4ghz and 5 ghz bands have to have different names, or it will just default to 2.4ghz.

Hope this info helps

Jerry

Edit

BTW the md5sum for the latest rt2870.bin firmware should be

[codekr33ma38]36c944c3138125605d28c0a3a1338be9[/codekr33ma38]

en1gma

04-11-2011 00:54:54

i guess we both learned something new

[quote4fd0kjcn]5ghz = "a" right?
Quote


If I understand the question, the answer is no. 5GHZ can be any of b,g or n , just like 2.4 GHZ. "a" is somewhere around 3GHZ, and I have no equipment compatible with it. (There isn't much around anymore.)
The 5GHZ is a frequency.

iwlist scan results with the lynksys ae1000 and the 3.1.0 vanilla kernel[/quote4fd0kjcn]

so both A and N are 5GHz

ok now on to next Q did you try that firmware jawilljr mentioned?
if so could you post your results?
i just dloaded kernel 3.1 and am getting ready to set it up

Andrew1/fkOlJ

04-11-2011 17:22:34

Thanks jawilljr.

No success for me.
I tried a three approaches

(1) The latest firmware that you suggested with support compiled right into the 3.1.0 kernel.
(Result the firmware would not load.)

(2) The firmware from the gentoo package "linux-firmware" with support compiled right into the 3.1.0 kernel.
(Result everything works on 2.5 GHZ, nothing works on 5GHZ.) (Same result with firmware from ralink's page.)

(3) compat-wireless-2011-10-31 package as downloaded
(Result would not compile with any of the gentoo-sources-3.1.0, 3.06 and 2.26.39-r4 kernels.)

What kernel are you using?

jawilljr

04-11-2011 19:01:40

Below is my uname -r

[code1tmebv5b]3.0.0-12-generic[/code1tmebv5b]

I should have put this in my first post, because I also got compile errors from the athereos chip.

To compile try this

[code1tmebv5b]./scripts/driver-select rt2x00
make
sudo make install[/code1tmebv5b]

What that does is only compile the rt2x00 wifi drivers.

Below is my iwconfig

[code1tmebv5b]lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11abgn ESSID:"KJAWJR"
Mode:Managed Frequency:5.18 GHz Access Point: C0:C1:C0:38:4F:32
Bit Rate=130 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=57/70 Signal level=-53 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:6 Invalid misc:67 Missed beacon:0[/code1tmebv5b]

and my lsusb

[code1tmebv5b]Bus 002 Device 002: ID 13b1:002f Linksys AE1000 v1 802.11n [Ralink RT2870][/code1tmebv5b]


Jerry

en1gma

04-11-2011 19:40:17

i just did a dist-upgrade to debian wheezy 3.0.0-1-686-pae
i then compiled 11-03-2011 compat-wireless and try the 0.33 ralink firmware

http//pastebin.com/E9vnUS1W

when i do 'sudo iwlist scan' it takes longer then usual to do the scan.

monitor mode works for sure
packet injection
[quote2hu43jni]en1gma@debian~$ sudo aireplay-ng -9 mon0
ioctl(RTC_IRQP_SET) failed Invalid argument
Make sure enhanced rtc device support is enabled in the kernel (module
rtc, not genrtc) - also try 'echo 1024 >/proc/sys/dev/rtc/max-user-freq'.
152651 Trying broadcast probe requests...
152652 Injection is working!
152653 Found 3 APs
[/quote2hu43jni]

the first couple times i ran that command it said it wasnt working
i cant believe its working now...it wasnt working like 3x

hostapd does appear to work also!

it does appear we have working monitor mode and packet injection (at least with the setup i have listed above)
"jawilljr" <<<thanks to you for pointing this out

Andrew1/fkOlJ

06-11-2011 15:40:20

[quote2snvfd6k][/quote2snvfd6k]3.0.0-12-generic[quote2snvfd6k][/quote2snvfd6k]

jawilljr, thanks for the information and suggestions.

My Gentoo OS is compiled with "-march=native" and the kernel with processor type "Core 2/newer Xeon".
I would not change these settings because of the other advantages that they bring.
Is the kernel you mentioned compiled with "Generic-x86-64 " and the rest of your Ubuntu
with "-march=generic" or "-mtune=generic", or something like that?

The reason that I ask is that the latest compat-wireless and firmware rt2870.bin has consistently led to
major kernel crashes when the ae-1000 is in use. So major in fact that the crashes trashed my OS. Fortunately
I always keep two functioning copies of my OS on separate partitions, so that I can easily copy the good partition
to the trashed one, re-edit a couple of files and resume using it.

en1gma

07-11-2011 02:05:11

the latest compat-wireless is the key along with that firmware 2870.bin

i can confirm it WORKS! 100%

the latest compat-wireless = november 03 2011
11-03-2011

the 2870.bin firmware came out of the link provided earlier 0.33

anyhow its rocking and rolling