Ralink RT2870 based USB Wireless N adapters (Ubuntu)

I’m sorry but this approach is not going to work for me.
Apparently one almost needs a university degree in network management before a simple wireless connection can be established.
All I know is that in Ubuntu Desktop version there’s absolute no problem to establish a wireless WPA2 secured connection with that exact same wireless USB stick.

A few years ago I managed to create the wireless connection in Karmic Server version based upon an example and I’m still working with it. But in newer kernels it’s definitely not working.
It must be somehow that wpa_supplicant stuff.

I’ve tried to test the connection against a non protected network like you’ve asked.
It’s embarrassing to say but I failed. I even don’t know how to adjust the relevant files in order to be able to connect to an insecure network. The network is detected but there’s no association so I guess there must be something wrong with my configuration files.

I can only draw the conclusion that currently my knowledge about networks is absolute not sufficient to be able to do this and I don’t have time to read more about it.
Can you provide me with configuration files, please?

Try these…

Run:

wpa_passphrase NetworkEssid your_passphrase

The output will be similar to -

network={ ssid="NetworkEssid" #psk="your_passphrase" psk=559cb7c92c036b711ccdb40514c57b33c58372e7df912fc5f36a9f05a04d98ab

Obviously you need to replace NetworkEssid and your_passphrase


Now for the configs…

/etc/network/interfaces

auto ra0 iface ra0 inet static address 10.0.0.19 netmask 255.255.255.0 gateway 10.0.0.140 wpa-driver wext wpa-conf /etc/wpa_supplicant.conf

/etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant ap_scan=2 #eapol_version=1 #fast_reauth=1

network={
ssid=“NetworkEssid”
proto=WPA2 WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
#psk=“your_passphrase”
psk=559cb7c92c036b711ccdb40514c57b33c58372e7df912fc5f36a9f05a04d98ab
}

Obviously you need to replace the bits in red with what you got from - wpa_passphrase NetworkEssid your_passphrase


/etc/resolv.conf

nameserver 10.0.0.19
nameserver 208.67.222.222
nameserver 208.67.220.220


Now try:
sudo ifdown ra0
then
sudo ifup ra0


If that doesn’t work… post the output from:

wpa_supplicant -Dwext -ira0 -c /etc/wpa_supplicant.conf -dd

Hmm… I’ve just spotted this:

[ 26.644532] [b]BUG:[/b] unable to handle kernel paging request at 2982b000 [ 26.644673] IP: [] MainVirtualIF_open+0x4f/0x120 [[b]rt2870sta[/b]] [ 26.644812] *pdpt = 0000000025db7001 *pde = 0000000000000000 [ 26.644939] [b][b]Oops:[/b][/b] 0002 [#1] SMP [ 26.645033] last sysfs file: /sys/module/[b]snd_seq_device[/b]/initstate [ 26.645083] Modules linked in: iptable_filter snd_seq_midi_event iptable_mangle iptable_nat snd_seq nf_nat nf_conntrack_ipv4 snd_timer nf_conntrack snd_seq_device nf_defrag_ipv4 usbhid btusb ip_tables psmouse snd bluetooth x_tables hid serio_raw usblp soundcore snd_page_alloc shpchp sis_agp video rt2870sta lp parport usb_storage uas r8169 sata_sis [ 26.646131] [ 26.646169] Pid: 661, comm: wpa_supplicant Not tainted 2.6.38-9-generic-pae #43-Ubuntu To Be Filled By O.E.M. To Be Filled By O.E.M./To be filled by O.E.M. [ 26.646374] EIP: 0060:[] EFLAGS: 00010293 CPU: 0 [ 26.646447] EIP is at MainVirtualIF_open+0x4f/0x120 [rt2870sta] [ 26.646494] EAX: f3bd8000 EBX: f4a1c000 ECX: f84e4104 EDX: 00000292 [ 26.646542] ESI: f84e4000 EDI: f8405000 EBP: e509fe60 ESP: e509fe4c [ 26.646590] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 [ 26.646637] Process [b]wpa_supplicant[/b] (pid: 661, ti=e509e000 task=e5f96500 task.ti=e509e000) [ 26.646689] Stack: [ 26.646723] c1107c58 2e1c1025 f4a1c000 f4a1c048 f8405000 e509fe80 c145a22b e509fe70 [ 26.646991] c1531be6 e509fe80 f4a1c000 00001003 00000000 e509fea8 c145a4a2 00000001 [ 26.647273] c178f8c0 bfb2620c 00001002 00000001 f4a1c000 bfb2620c 00001002 e509febc [ 26.647567] Call Trace: [ 26.647627] [] ? __do_fault+0x418/0x520 [ 26.647698] [] __dev_open+0x9b/0xf0 [ 26.647758] [] ? _raw_spin_unlock_bh+0x16/0x20 [ 26.647819] [] __dev_change_flags+0x82/0x150 [ 26.647879] [] dev_change_flags+0x23/0x60 [ 26.647939] [] devinet_ioctl+0x624/0x680 [ 26.647999] [] ? copy_to_user+0x42/0x60 [ 26.648064] [] inet_ioctl+0x95/0xb0 [ 26.648123] [] sock_ioctl+0x6d/0x290 [ 26.648180] [] ? sock_ioctl+0x0/0x290 [ 26.648241] [] do_vfs_ioctl+0x7b/0x2e0 [ 26.648300] [] sys_ioctl+0x87/0x90 [ 26.648358] [] ? sys_close+0x75/0xd0 [ 26.648418] [] sysenter_do_call+0x12/0x28 [ 26.648465] Code: f4 8b 75 f8 8b 7d fc 89 ec 5d c3 90 8b 46 08 85 c0 74 59 83 c0 01 89 46 08 83 3d 00 9f 61 f8 02 0f 84 a8 00 00 00 a1 70 a0 61 f8 <64> ff 00 a1 7c e9 7b c1 85 c0 75 6e 8b 83 00 02 00 00 f0 80 60 [ 26.648465] EIP: [] MainVirtualIF_open+0x4f/0x120 [rt2870sta] SS:ESP 0068:e509fe4c [ 26.648465] CR2: 000000002982b000 [ 26.650653] ---[ end trace 25b99e8aa091c880 ]---

in he dmesg.0 file you attached to this post:
http://linuxforums.org.uk/hardware-compatibility/ralink-rt2870-based-usb-wireless-n-adapters-(ubuntu)/msg58931/#msg58931

Which might explain the system becoming unstable… can you attach another dmesg from the kernel and driver you are now using.

If I’m reading this correctly (but I may not be) it may suggest some sort of conflict between the wireless device/wpa_supplicant and the sound card… maybe in virtual memory… I’m trying to find out what "MainVirtualIF is ???

Thanks for investigating the problem so far. I really appreciate all the effort you make for this.

I’ve compared my configs with the ones in your post of July 14, 2011, 07:06:17 pm. There were some minor differences which I guess are not that important but nevertheless I corrected them:

  • In my configs access point scanning mode set to 2 was still in etc/network/interfaces not in wpa_supplicant.conf.
  • Proto in my wpa_supplicant.conf was set to RSN WPA instead of WPA2 WPA.

These modifications don’t make any difference. Kernel 2.6.31 still works and kernel 2.6.35 does not.
In kernel 2.6.35 the interfaces name is not ra0 but wlan0 so I did: wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf -dd. Initially this didn’t work (message about wpa_supplicant already active) but after issuing ifdown it did work.
The command seems to finish never so I stopped it with CTRL+C after some time. You can read the output in the attachment. If I read it correctly I understand from it that the driver does recognize the wireless network but that it fails when it comes to the security key.

Besides I’ve decided to get rid of all failed attempts and so I’ve removed all kernel images and kernel headers except for 2.6.31 which I do need as long as this matter is not solved. After that I’ve installed the latest kernel image and header of 2.6.35.
So the above test was performed on a pristine kernel without any additional drivers not even the one you’ve provided. We can probably try additional drivers in a subsequent step.

The observation you’ve posted in your post of July 15, 2011, 03:20:24 pm is quite interesting. Unfortunately I can’t provide you with another dmesg output because I’ve removed that kernel earlier this week because of persisting crashes. So far 2.6.35 does not produce errors concerning paging errors.

From your wpa_supplicant output, it seems like it’s an issue with the group cipher key length… maybe the key that you generated with wpa_passphrase is invalid.

Does your “passphrase” contain any strange characters such as a tilde (~) etc.

you might (just as a test) want to try entering the passphrase as a plain text key… so make /etc/wpa_supplicant.conf read:

ctrl_interface=/var/run/wpa_supplicant ap_scan=2 #eapol_version=1 #fast_reauth=1

network={
ssid=“NetworkEssid”
proto=WPA2 WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=“your_passphrase_in_plain_text_here
}

be sure to include the “” quotation marks.

and now see what:

wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf -d

returns, and whether it connects.

let’s use just one -d in the last command this time, to turn down the verbosity level… the last output was a bit longer than I expected and probably unnecessary :wink:


Just as a matter of interest, what is the make/model of your router/access point ?

what is the output from:

iwlist wlan0 scanning

and do you NEED WPA2… I know your router/AP is mixed mode, but can’t you just connect to it with WPA ? … or am I misunderstanding your network layout ?

What I’m getting at is… couldn’t you just drop WPA2 and CCMP altogether and just connect with WPA/TKIP ?


This seems to be the important part:

State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE [b]RSN: received GTK in pairwise handshake - hexdump(len=34): [REMOVED] WPA: Unsupported CCMP Group Cipher key length 32 (32).[/b] RSN: Failed to install GTK RSN: Failed to configure GTK wpa_driver_wext_deauthenticate

I’m reading up on the 4way handshake and GTK (group temporal key) now :o … I’ll post if I find anything.

Just a quick reply for now.
Concerning WPA2: No, I do not insist on using WPA2 although it is safer. I have a rather old PC running Windows XP. Windows XP is supposed to handle WPA2 but it can’t so that one connects with WPA too.
And that is merely the reason that my modem router is in mixed mode.
I can probably try what happens if I switch it to WPA or WPA2 only. I’ve found several claims that mixed mode means trouble with Ralink based adapters so it may be worth the effort to try it.

B.T.W.: Why doesn’t it try WPA if WPA2 fails? if I am correct the config allows both types and the AP accepts both types.

Furthermore I still don’t understand why the wireless USB adapter has no problems at all connecting to my network when I plug it into a laptop computer running the same Ubuntu version except it is the desktop version and besides with the 2.6.31 kernel on the server it also connects without problems. My guess is that there’s nothing wrong with my wireless network, it is just a kernel/driver issue.
B.T.W.: I’ve brought the problem to the attention of the Ubuntu developers and their answer was that I should file a bugreport on Launchpad. Well, in Launchpad there are about 20 similar problems and virtually none of them has drawn the attention of the developers or is even triaged so I did not file a report after all.
The reality is simply that no one seems to know exactly what is happening with this type of adapters.

My passphrase does not contain strange characters. It is in hexadecimal form so it can’t contain strange characters and the plaintext form is a mix of numbers and capitals.
And I know for sure it is correct because that old 2.6.31 kernel uses the same wpa_supplicant settings too and is still connecting without problems. The SSID does contain certain unusual characters but even that’s not a problem for the 2.6.31 kernel.

My modem router is a FRITZ!Box Fon WLAN 7140 Annex A.

I didn’t do any tests today. Probably tomorrow.

I agree… I would have expected it to fall back on WPA if WPA2 failed to connect, but it just appears to go into a loop of retrying WPA2.

I’m also as baffled as you as to why it works in the desktop edition but not the server edition… I do realise -
a) the kernels are slightly different… but wouldn’t have expected the drivers (which are modules) to be any different.
b) NetworkManager handles the network connections slightly differently, but I’m unsure of the exact differences in the way the keys are generated, but I do know… after creating a WPA2 connection in NetworkManager and checking its settings in /etc/NetworkManager/system-connectionsNetworkManager appears to store the psk= as a plain text string of the passphrase, and NOT a long passkey hash. (but sets read/write permissions for owner root only [-rw------- 600])

I also know NetworkManager doesn’t use the /etc/wpa_supplicant.conf or /etc/network/interfaces config files … but it does use the wpa_supplicant service, and will start it even if it is disabled… NetworkManager gets its settings from /etc/NetworkManager/system-connections/

So I would guess that it isn’t a kernel issue, or a driver issue, and probably isn’t a wpa_supplicant issue either… but more an issue of the way the network is brought up, and the way the passkey (psk=) is handed to the wpa_supplicant service.

Have you tried regenerating the long passkey hash from your passphrase, or are you just reusing the passkey hash that you previously had ?

It’s a weird one this for sure.

I don’t know whether you want to trust me with your passphrase and the passkey hash you are using so I can try them myself… if you are OK with that, send them to me either by email:
mark.greaves@linux.co.uk
or in a Personal Message here.

As I suggested in my last post… I’d still suggest you try entering the psk= as a plain text string in /etc/wpa_supplicant.conf and see what happens.

I read on another forum that when using NetworkManager for a WPA/WPA2 connection, it asks for your passphrase, but after the first time you connect, the passphrase has changed to a passkey hash … I’ll look into this tonight and see if that’s correct… if it is, maybe you can connect with a desktop edition, then copy the passkey hash NetworkManager generates to your servers wpa_supplicant.conf … just an idea :wink:

Hello,
I’m also having trouble getting my USB adapter (Sitecom WL-346) to work. I believe (I’m not absolutely sure) the appropriate driver for it is rt2870.
The problem is that the output of iwconfig only shows my loopback device.
By the way, I am using Ubuntu 11.04.

The output of lsusb:
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0df6:0051 Sitecom Europe B.V.
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Also the output of lsmod does not show a module with substring ‘rt’.

When I unplug the adapter and replug it, and output the last lines of dmesg:
USB disconnect, address 2
new full speed USB device using uhci_hcd and address 3

I hope you guys can help.

@ Micheal

Hmm… I have a funny feeling your adapter may be loading as a ZeroCD device… can you post the full dmesg.

cd ~
dmesg >> dmesg.txt
zip dmesg.zip dmesg.txt

the attach the dmesg.zip file that you’ll find in your home directory to your next post.

The reason… your mention of this line in dmesg:

new full speed USB device using uhci_hcd and address 3

and what I’m reading about another Sitecom device (Sitecom 300N Wireless WL-324) here:

in particular post #15 onwards.

So maybe this adapter also requires usb-modeswitch :o

I’m also wondering if the button changes it from ZeroCD to Wireless mode ??

run:

lsusb

press the button, and run it again… and see if the:
Bus 001 Device 002: ID 0df6:0051 Sitecom Europe B.V.
line has changed.

BTW, I’m guessing when you say “Sitecom WL-346” that’s a typo… the Sitecom WL-346 is a router… the Sitecom WL-364 is a USB wireless adapter :wink:

http://www.sitecom.com/wireless-network-usb-micro-adapter-300n/wl-364/p/788

[EDIT]

Further info…

I’ve just unpacked the Windows drivers from the Sitecom website, and the HWID.ini file reads

[spoiler]
[RT61]
DeviceID_1=PCI\VEN_1814&DEV_0301
DeviceID_2=PCI\VEN_1814&DEV_0302
DeviceID_3=PCI\VEN_1814&DEV_0401

[RT73]
DeviceID_1=USB\VID_148F&PID_2573
DeviceID_2=USB\VID_148F&PID_2671
DeviceID_3=USB\VID_0DB0&PID_6877
DeviceID_4=USB\VID_0DB0&PID_A874
DeviceID_5=USB\VID_0DB0&PID_6874
DeviceID_6=USB\VID_0DB0&PID_A861
DeviceID_7=USB\VID_1631&PID_C019
DeviceID_8=USB\VID_18E8&PID_6196
DeviceID_9=USB\VID_18E8&PID_6229
DeviceID_10=USB\VID_1044&PID_8008
DeviceID_11=USB\VID_1044&PID_800A
DeviceID_12=USB\VID_14B2&PID_3C22
DeviceID_13=USB\VID_0769&PID_31F3
DeviceID_14=USB\VID_0B05&PID_1723
DeviceID_15=USB\VID_0B05&PID_1724
DeviceID_16=USB\VID_18C5&PID_0002
DeviceID_17=USB\VID_1371&PID_9032
DeviceID_18=USB\VID_1472&PID_0009
DeviceID_19=USB\VID_1690&PID_0722
DeviceID_20=USB\VID_148F&PID_9021
DeviceID_21=USB\VID_0EB0&PID_9021
DeviceID_22=USB\VID_15A9&PID_0004
DeviceID_23=USB\VID_050D&PID_905C
DeviceID_24=USB\VID_050D&PID_905B
DeviceID_25=USB\VID_050D&PID_705B
DeviceID_26=USB\VID_0411&PID_00D8
DeviceID_27=USB\VID_18E8&PID_6238
DeviceID_28=USB\VID_0471&PID_200A
DeviceID_29=USB\VID_0CDE&PID_001C
DeviceID_30=USB\VID_0DB0&PID_4600
DeviceID_31=USB\VID_07B8&PID_B21B
DeviceID_32=USB\VID_07B8&PID_B21C
DeviceID_33=USB\VID_07B8&PID_B21D
DeviceID_34=USB\VID_07B8&PID_B21E
DeviceID_35=USB\VID_07B8&PID_B21F
DeviceID_36=USB\VID_2019&PID_AB01
DeviceID_37=USB\VID_2019&PID_AB50
DeviceID_38=USB\VID_0586&PID_3415
DeviceID_39=USB\VID_0DF6&PID_0024
DeviceID_40=USB\VID_0DF6&PID_0027
DeviceID_41=USB\VID_1740&PID_3701
DeviceID_42=USB\VID_0DF6&PID_002F
DeviceID_43=USB\VID_1740&PID_7100
DeviceID_44=USB\VID_7392&PID_7318
DeviceID_45=USB\VID_7392&PID_7618
DeviceID_46=USB\VID_14B2&PID_3C10
DeviceID_47=USB\VID_04E8&PID_4471
DeviceID_48=USB\VID_08DD&PID_0120
DeviceID_49=USB\VID_07D1&PID_3C06
DeviceID_50=USB\VID_04BB&PID_093D
DeviceID_51=USB\VID_7167&PID_3840
DeviceID_52=USB\VID_07AA&PID_002E
DeviceID_53=USB\VID_1B75&PID_7318
DeviceID_54=USB\VID_8516&PID_2571

[RT2860]
DeviceID_1=PCI\VEN_1814&DEV_0601
DeviceID_2=PCI\VEN_1814&DEV_0681
DeviceID_3=PCI\VEN_1814&DEV_0701
DeviceID_4=PCI\VEN_1814&DEV_0781

[RT2870]
DeviceID_1=USB\VID_148F&PID_2870
DeviceID_2=USB\VID_0B05&PID_1731
DeviceID_3=USB\VID_0B05&PID_1732
DeviceID_4=USB\VID_0DF6&PID_0017
DeviceID_5=USB\VID_14B2&PID_3C06
DeviceID_6=USB\VID_2019&PID_ED06
DeviceID_7=USB\VID_07D1&PID_3C09
DeviceID_8=USB\VID_050D&PID_8053
DeviceID_9=USB\VID_14B2&PID_3C07
DeviceID_10=USB\VID_14B2&PID_3C23
DeviceID_11=USB\VID_07AA&PID_002F
DeviceID_12=USB\VID_1044&PID_800B
DeviceID_13=USB\VID_148F&PID_2770
DeviceID_14=USB\VID_15A9&PID_0006
DeviceID_15=USB\VID_083A&PID_B522
DeviceID_16=USB\VID_083A&PID_7522
DeviceID_17=USB\VID_1740&PID_9701
DeviceID_18=USB\VID_14B2&PID_3C25
DeviceID_19=USB\VID_0B05&PID_1742
DeviceID_20=USB\VID_0471&PID_200F
DeviceID_21=USB\VID_13D3&PID_3247
DeviceID_22=USB\VID_083A&PID_6618
DeviceID_23=USB\VID_083A&PID_A618
DeviceID_24=USB\VID_07AA&PID_003C
DeviceID_25=USB\VID_1740&PID_9702
DeviceID_26=USB\VID_0E66&PID_0001
DeviceID_27=USB\VID_0E66&PID_0003
DeviceID_28=USB\VID_14B2&PID_3C27
DeviceID_29=USB\VID_14B2&PID_3C28
DeviceID_30=USB\VID_129B&PID_1828
DeviceID_31=USB\VID_0CDE&PID_0025
DeviceID_32=USB\VID_0DF6&PID_002B
DeviceID_33=USB\VID_07AA&PID_003F
DeviceID_34=USB\VID_0DF6&PID_002C
DeviceID_35=USB\VID_0DF6&PID_002D
DeviceID_36=USB\VID_1044&PID_800C
DeviceID_37=USB\VID_07D1&PID_3C11
DeviceID_38=USB\VID_7392&PID_7717
DeviceID_39=USB\VID_7392&PID_7718
DeviceID_40=USB\VID_07B8&PID_2870
DeviceID_41=USB\VID_07B8&PID_2770
DeviceID_42=USB\VID_2019&PID_AB24
DeviceID_43=USB\VID_18E8&PID_6259
DeviceID_44=USB\VID_07D1&PID_3C13
DeviceID_45=USB\VID_0B05&PID_1760
DeviceID_46=USB\VID_0B05&PID_1761
DeviceID_47=USB\VID_15A9&PID_0010
DeviceID_48=USB\VID_083A&PID_8522
DeviceID_49=USB\VID_083A&PID_7512
DeviceID_50=USB\VID_0DF6&PID_0039
DeviceID_51=USB\VID_0E66&PID_0009
DeviceID_52=USB\VID_0E66&PID_000B
DeviceID_53=USB\VID_13D3&PID_3262
DeviceID_54=USB\VID_0DF6&PID_003B
DeviceID_55=USB\VID_0E0B&PID_9031
DeviceID_56=USB\VID_0E0B&PID_9041
DeviceID_57=USB\VID_0DF6&PID_003C
DeviceID_58=USB\VID_1D4D&PID_0001
DeviceID_59=USB\VID_1D4D&PID_0002
DeviceID_60=USB\VID_1740&PID_0605
DeviceID_61=USB\VID_1740&PID_0615
DeviceID_62=USB\VID_0B05&PID_1731
DeviceID_63=USB\VID_5A57&PID_0280
DeviceID_64=USB\VID_5A57&PID_0282
DeviceID_65=USB\VID_0789&PID_0162
DeviceID_66=USB\VID_0789&PID_0163
DeviceID_67=USB\VID_0789&PID_0164
DeviceID_68=USB\VID_2001&PID_3C09
DeviceID_69=USB\VID_0DF6&PID_003F
DeviceID_70=USB\VID_100D&PID_9031
DeviceID_71=USB\VID_100D&PID_9032
DeviceID_72=USB\VID_083A&PID_D522
DeviceID_73=USB\VID_2019&PID_AB24
DeviceID_74=USB\VID_1737&PID_0070
DeviceID_75=USB\VID_1737&PID_0071
DeviceID_76=USB\VID_0411&PID_00E8
DeviceID_77=USB\VID_0411&PID_0148
DeviceID_78=USB\VID_0411&PID_0150
DeviceID_79=USB\VID_14B2&PID_3C08
DeviceID_80=USB\VID_14B2&PID_3C11
DeviceID_81=USB\VID_07AA&PID_0041
DeviceID_82=USB\VID_07AA&PID_0042
DeviceID_83=USB\VID_1737&PID_0070
DeviceID_84=USB\VID_1737&PID_0071
DeviceID_85=USB\VID_8516&PID_2870
DeviceID_86=USB\VID_8516&PID_2770
DeviceID_87=USB\VID_1761&PID_0B05

[RT2070]
DeviceID_1=USB\VID_148F&PID_2070
DeviceID_2=USB\VID_8516&PID_2070

[RT3070]
DeviceID_1=USB\VID_148F&PID_3070
DeviceID_2=USB\VID_2019&PID_AB25
DeviceID_3=USB\VID_07B8&PID_3070
DeviceID_4=USB\VID_07B8&PID_3071
DeviceID_5=USB\VID_14B2&PID_3C12
DeviceID_6=USB\VID_7392&PID_7711
DeviceID_7=USB\VID_083A&PID_7511
DeviceID_8=USB\VID_148F&PID_3071
DeviceID_9=USB\VID_148F&PID_3072
DeviceID_10=USB\VID_1740&PID_9703
DeviceID_11=USB\VID_1A32&PID_0304
DeviceID_12=USB\VID_1044&PID_800D
DeviceID_13=USB\VID_13D3&PID_3273
DeviceID_14=USB\VID_1EDA&PID_2310
DeviceID_15=USB\VID_07B8&PID_3072
DeviceID_16=USB\VID_0DF6&PID_003E
DeviceID_17=USB\VID_2001&PID_3C0A
DeviceID_18=USB\VID_0DF6&PID_0040
DeviceID_19=USB\VID_148F&PID_3572
DeviceID_20=USB\VID_1D4D&PID_000C
DeviceID_21=USB\VID_07D1&PID_3C0A
DeviceID_22=USB\VID_0586&PID_341A
DeviceID_23=USB\VID_1B75&PID_3072
DeviceID_24=USB\VID_083A&PID_A512
DeviceID_25=USB\VID_1737&PID_0078
DeviceID_26=USB\VID_0411&PID_015D
DeviceID_27=USB\VID_07D1&PID_3C0B
DeviceID_28=USB\VID_1740&PID_9705
DeviceID_29=USB\VID_1740&PID_9801
DeviceID_30=USB\VID_1740&PID_9706
DeviceID_31=USB\VID_0DB0&PID_6899
DeviceID_32=USB\VID_0DF6&PID_0041
DeviceID_33=USB\VID_0DF6&PID_0042
DeviceID_34=USB\VID_07D1&PID_3C0D
DeviceID_35=USB\VID_07D1&PID_3C0E
DeviceID_36=USB\VID_1D4D&PID_000E
DeviceID_37=USB\VID_5A57&PID_5257
DeviceID_38=USB\VID_5A57&PID_0283
DeviceID_39=USB\VID_04BB&PID_0944
DeviceID_40=USB\VID_04BB&PID_0945
DeviceID_41=USB\VID_0DB0&PID_3820
DeviceID_42=USB\VID_203D&PID_1480
DeviceID_43=USB\VID_1690&PID_0744
DeviceID_44=USB\VID_1690&PID_0740
DeviceID_45=USB\VID_0DF6&PID_0048
DeviceID_46=USB\VID_0DF6&PID_0047
DeviceID_47=USB\VID_1690&PID_0740
DeviceID_48=USB\VID_1690&PID_0744
DeviceID_49=USB\VID_13D3&PID_3284
DeviceID_50=USB\VID_07D1&PID_3C0F
DeviceID_51=USB\VID_0DF6&PID_004A
DeviceID_52=USB\VID_07D1&PID_3C15
DeviceID_53=USB\VID_5A57&PID_0284
DeviceID_54=USB\VID_203D&PID_14A1
DeviceID_55=USB\VID_20B8&PID_8888
DeviceID_56=USB\VID_0DB0&PID_821A
DeviceID_57=USB\VID_0DB0&PID_899A
DeviceID_58=USB\VID_0DB0&PID_3870
DeviceID_59=USB\VID_0DB0&PID_870A
DeviceID_60=USB\VID_203D&PID_14A9
DeviceID_61=USB\VID_13D3&PID_3305
DeviceID_62=USB\VID_0930&PID_0A07
DeviceID_63=USB\VID_0DB0&PID_3821
DeviceID_64=USB\VID_04BB&PID_0947
DeviceID_65=USB\VID_04BB&PID_0948
DeviceID_66=USB\VID_1740&PID_9707
DeviceID_67=USB\VID_1740&PID_9708
DeviceID_68=USB\VID_1740&PID_9709
DeviceID_69=USB\VID_083A&PID_A701
DeviceID_70=USB\VID_083A&PID_A702
DeviceID_71=USB\VID_07D1&PID_3C16
DeviceID_72=USB\VID_148F&PID_3370
DeviceID_73=USB\VID_1737&PID_0078
DeviceID_74=USB\VID_0DB0&PID_3822
DeviceID_75=USB\VID_0DB0&PID_822A
DeviceID_76=USB\VID_0DB0&PID_3871
DeviceID_77=USB\VID_0DB0&PID_871A
DeviceID_78=USB\VID_8516&PID_3070
DeviceID_79=USB\VID_8516&PID_3071
DeviceID_80=USB\VID_8516&PID_3072
DeviceID_81=USB\VID_8516&PID_3572
DeviceID_82=USB\VID_1D4D&PID_0010
DeviceID_83=USB\VID_05A6&PID_0101
DeviceID_84=USB\VID_0B05&PID_1790
DeviceID_85=USB\VID_0E66&PID_0013
DeviceID_86=USB\VID_0DF6&PID_0051

[RT2090]
DeviceID_1=PCI\VEN_1814&DEV_2090

[RT3090]
DeviceID_1=PCI\VEN_1814&DEV_3090
DeviceID_2=PCI\VEN_1814&DEV_3091
DeviceID_3=PCI\VEN_1814&DEV_3092
DeviceID_4=PCI\VEN_1814&DEV_3062
DeviceID_5=PCI\VEN_1814&DEV_3562
DeviceID_6=PCI\VEN_1814&DEV_3592
DeviceID_7=PCI\VEN_1814&DEV_3060
DeviceID_8=PCI\VEN_1814&DEV_3290[/spoiler]
(look for the device ID string in red in the above spoiler… it’s in the RT3070 section)

So it would seem as though you need the RT3070 driver… BUT… the latest Linux 3070 driver doesn’t contain the device ID string for that adapter.

I can add the device ID string to the latest 3070 driver… then give you a link to the customised driver… then you can try it if you like ?
Up to you.

Hi Mark, thanks for responding.
You’re correct about the typo, it is indeed the WL-364. :slight_smile:

One of the problems was the outdated version of the rt2800usb driver.
In this commit the adapter is added: Ubuntu Kernel Repositories

I’ve downloaded the complete (and most recent) compat source and compiled & installed everything.
At this time, the adapter is recognized (it shows up in iwconfig):

wlan1 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on

But there are still problems, when I plug the adapter in, NetworkManager shows “device not ready (firmware missing)”
The output of dmesg:

[ 1858.072095] usb 2-3: new high speed USB device using ehci_hcd and address 4
[ 1858.496123] usb 2-3: reset high speed USB device using ehci_hcd and address 4
[ 1858.654096] cfg80211: Updating information on frequency 2412 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654106] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654113] cfg80211: Updating information on frequency 2417 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654121] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654126] cfg80211: Updating information on frequency 2422 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654133] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654138] cfg80211: Updating information on frequency 2427 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654145] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654150] cfg80211: Updating information on frequency 2432 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654157] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654162] cfg80211: Updating information on frequency 2437 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654168] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654174] cfg80211: Updating information on frequency 2442 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654180] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654185] cfg80211: Updating information on frequency 2447 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654192] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654197] cfg80211: Updating information on frequency 2452 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654204] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654209] cfg80211: Updating information on frequency 2457 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654216] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654221] cfg80211: Updating information on frequency 2462 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654228] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654233] cfg80211: Updating information on frequency 2467 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654239] cfg80211: 2457000 KHz - 2482000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654245] cfg80211: Updating information on frequency 2472 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654251] cfg80211: 2457000 KHz - 2482000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654257] cfg80211: Updating information on frequency 2484 MHz for a 20 MHz width channel with regulatory rule:
[ 1858.654263] cfg80211: 2474000 KHz - 2494000 KHz @ KHz), (300 mBi, 2000 mBm)
[ 1858.654554] ieee80211 phy1: Selected rate control algorithm ‘minstrel_ht’
[ 1858.657061] Registered led device: rt2800usb-phy1::radio
[ 1858.657111] Registered led device: rt2800usb-phy1::assoc
[ 1858.657164] Registered led device: rt2800usb-phy1::quality
[ 1858.657626] usbcore: registered new interface driver rt2800usb
[ 1858.761425] phy1 → rt2x00lib_request_firmware: Error - Current firmware does not support detected chipset.

Is the adapter recognised by:

sudo lshw -C network

and what driver does it say it’s using ?

You could try the latest firmware snapshot from here:
http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git

or the debian firmware-ralink_0.32_all.deb package from here (which appears to only be 3 days older):
http://packages.debian.org/sid/all/firmware-ralink/download

The adapter is not recognised if I type the aforesaid command (there is no output).
Installing either the deb file seems a good option. Though when I’m trying to install it, dpkg gives an error: “trying to overwrite /lib/firmware/rt2860.bin, which is also in package linux-firmware 1.52”
I’m looking into that.

Probably the best idea would be to manually backup all the files it’s going to replace in /lib/firmware

ie.

rt73.bin rt2561.bin rt2561s.bin rt2661.bin rt2860.bin rt2870.bin rt3070.bin <--- now replaced by a symlink rt3071.bin rt3090.bin <--- symlink

then manually unpack the files from the .deb (using fileroller), and place them in /lib/firmware

Ok, I think it’s success this time. There is a LED blinking, more info to be continued. :slight_smile:

EDIT
I am now connected to my router which is WPA2 secured and IT WORKS! :slight_smile:

Mark, thank you so much for helping me!! :slight_smile:

:slight_smile: glad to hear you’re getting somewhere … let us know if it works.

You’re more than welcome… though you did most of the work :wink:

@Mark:

Well, good to hear that it worked for Michael.

I guess I can add another success to this thread although it is not a complete success. The good news is that I managed to establish a connection with kernel 2.6.35.
The not so good news is that it still not works with WPA2. Based on our previous observations I’ve assumed that the fallback mechanism apparently fails for some reason so I’ve changed these lines of wpa_supplicant.conf:

proto=WPA2 WPA
pairwise=CCMP TKIP
group=CCMP TKIP

into these:

proto=WPA
pairwise=TKIP
group=TKIP

So now the driver is forced to work with WPA and that seems to work.

If I change it to this:

proto=WPA2
pairwise=CCMP
group=CCMP

thereby forcing WPA2 mode then the connection fails. However in this case scanning detects the AP (it gives the correct MAC-address) but fails to detect the SSID. I’ve a hunch that this might be due to the AP being hidden.

I’ve noticed a change in behavior that worries me a bit. In the old kernel the LED on the stick was blinking like mad. Now it blinks a few times and then it dims for several seconds and then blinks again a few times and this all happens in a random pattern. According to the log of the modem router the server does not disconnect so it appears to be a stable connection.

It does not seem to make any difference whether the psk is encrypted or in plain text.

Since we both have invested a lot of time in it already I’m determined to find out why it isn’t working in WPA2 mode.

Are you willing to assist further in this process? May be we can achieve more results with the drivers we tried earlier or may be the approach with new firmware which you tried with Michael may work.

Anyway, I’m very happy with this success.

Mark, thank you so much for all the assistance and advice you gave me so far!

Yeh sure… I’m quite happy to keep looking for a WPA2 solution, I too hate being beaten :wink:

Oddly enough after going through that with Michael, I was going to suggest a firmware update, and the latest drivers… maybe there is some kind of mismatch going on.

I also wonder if there is a later version of wpa_supplicant than the Maverick version… which version do you have:

wpa_supplicant -v

and for the Ubuntu package version:

sudo apt-get -v wpa_supplicant
I've a hunch that this might be due to the AP being hidden.

AFAIK the only way to be sure where the connection is failing would be to run:

wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf -d

and

iwlist wlan0 scanning

BTW, I wouldn’t worry too much about the lights, I’ve got a PCMCIA card in an old laptop that flashes both the power and RX/TX lights very oddly in Linux (fine in Windows), but connects perfectly and has done for a year + … both lights flash twice, then there’s a gap, then they flash twice again… rinse and repeat.

I’ll have a search for CCMP key length problems/solutions in the morning.

A (possible) mismatch between the newer drivers I was giving you links to, and the older firmware.

Sorry, I was after something like the “Version:” line from:

dpkg --status wpasupplicant

but it doesn’t matter as there’s no “easy” way to upgrade to 0.7.3 anyway… short of moving to Natty.

You suggested you thought it was something to do with the access point being hidden…What I meant by:

AFAIK the only way to be sure where the connection is failing would be to run:
wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf -d

was that that it would be impossible AFAIK, to discover exactly what was causing the issue, other than to run that command… which seems to suggest that it is more to do with the key than the fact that the AP’s SSID is hidden.

Did this result in new information?

Sorry, I’ve been a bit busy today… I’ll post as soon as I find anything useful :slight_smile:

[EDIT]

I’m finding quite a few references to WMM (Wireless Multimedia aka. Wireless QoS) causing WPA/WPA2 authentication issues… from what I gather this is enabled by default in the Fritz!Box 7140.

It might be worth turning it OFF in the router, and trying with WPA2 again… though this at first glance doesn’t explain why it would connect on an earlier kernel… plenty of people were having a similar issue with Atheros wireless cards, they worked on earlier kernels but not on newer kernels… the workaround was to disable WMM (Wireless QoS) in the router.

See post #17 here:

OK that’s an very old bug report… but FritBox’s own website says WMM can cause connection issues:
http://www.avm.de/help/Sets/avme/en/002/hilfe_wlan_allgemein.html
(see “Enable WMM” section towards the bottom)

So worth a try ?