Tenda w322p wireless can't find any networks.

continued from last post

monitor

linux-v2cb:/home/jonathan # tail -F /var/log/messages
Nov  3 23:16:39 linux-v2cb ifplugd(eth0)[13048]: client: ifup eth0 -o ifplugd
Nov  3 23:16:39 linux-v2cb ifplugd(eth0)[13048]: client:     eth0      device: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
Nov  3 23:16:39 linux-v2cb ifup:     eth0      device: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
Nov  3 23:16:39 linux-v2cb ifup-dhcp: Starting DHCP4 client on eth0
Nov  3 23:16:39 linux-v2cb dhcpcd[16268]: eth0: dhcpcd 3.2.3 starting
Nov  3 23:16:39 linux-v2cb dhcpcd[16268]: eth0: hardware address = 00:22:15:52:f1:66
Nov  3 23:16:39 linux-v2cb dhcpcd[16268]: eth0: broadcasting for a lease
Nov  3 23:16:39 linux-v2cb ifup-dhcp: . 
Nov  3 23:16:41 linux-v2cb ifup-dhcp: . 
Nov  3 23:16:44 linux-v2cb ifup-dhcp: . 
Nov  3 23:16:46 linux-v2cb ifup-dhcp: . 
Nov  3 23:16:46 linux-v2cb kernel:   424.324006] eth0: no IPv6 routers present
Nov  3 23:16:48 linux-v2cb dhcpcd[16268]: eth0: offered 192.168.2.2 from 192.168.2.1 `Jonathan-Peterss-MacBook-Pro.local'
Nov  3 23:16:48 linux-v2cb dhcpcd[16268]: eth0: checking 192.168.2.2 is available on attached networks
Nov  3 23:16:48 linux-v2cb ifup-dhcp: . 
Nov  3 23:16:49 linux-v2cb dhcpcd[16268]: eth0: leased 192.168.2.2 for 85536 seconds
Nov  3 23:16:49 linux-v2cb dhcpcd[16268]: eth0: no renewal time supplied, assuming 42768 seconds
Nov  3 23:16:49 linux-v2cb dhcpcd[16268]: eth0: no rebind time supplied, assuming 74844 seconds
Nov  3 23:16:49 linux-v2cb dhcpcd[16268]: eth0: adding IP address 192.168.2.2/24
Nov  3 23:16:49 linux-v2cb avahi-daemon[3209]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.2.2.
Nov  3 23:16:49 linux-v2cb dhcpcd[16268]: eth0: adding default route via 192.168.2.1 metric 0
Nov  3 23:16:49 linux-v2cb avahi-daemon[3209]: New relevant interface eth0.IPv4 for mDNS.
Nov  3 23:16:49 linux-v2cb avahi-daemon[3209]: Registering new address record for 192.168.2.2 on eth0.IPv4.
Nov  3 23:16:49 linux-v2cb ifdown:     eth0      device: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
Nov  3 23:16:49 linux-v2cb ifup:     eth0      device: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
Nov  3 23:16:50 linux-v2cb dhcpcd[16268]: eth0: exiting
Nov  3 23:16:50 linux-v2cb ifplugd(eth0)[13048]: client: Starting DHCP4 client on eth0. . . . .  
Nov  3 23:16:50 linux-v2cb ifup-dhcp:  
Nov  3 23:16:50 linux-v2cb ifplugd(eth0)[13048]: client:     eth0      IP address: 192.168.2.2/24
Nov  3 23:16:50 linux-v2cb ifup-dhcp:     eth0      IP address: 192.168.2.2/24
Nov  3 23:16:50 linux-v2cb ifplugd(eth0)[13048]: Program executed successfully.
Nov  3 23:18:08 linux-v2cb kernel:   506.316760] RX DESC ffff880037aad000  size = 2048
Nov  3 23:18:08 linux-v2cb kernel:   506.317036] <-- RTMPAllocTxRxRingMemory, Status=0
Nov  3 23:18:08 linux-v2cb kernel:   506.319477] 1. Phy Mode = 0
Nov  3 23:18:08 linux-v2cb kernel:   506.319478] 2. Phy Mode = 0
Nov  3 23:18:08 linux-v2cb kernel:   506.319480] NVM is Efuse and its size =2d[2d0-2fc] 
Nov  3 23:18:08 linux-v2cb kernel:   506.320659] 3. Phy Mode = 0
Nov  3 23:18:08 linux-v2cb kernel:   506.323492] MCS Set = 00 00 00 00 00
Nov  3 23:18:08 linux-v2cb kernel:   506.324649] <==== rt28xx_init, Status=0
Nov  3 23:18:08 linux-v2cb kernel:   506.324712] 0x1300 = 00073200
Nov  3 23:18:10 linux-v2cb avahi-daemon[3209]: Registering new address record for fe80::ca3a:35ff:fec6:4505 on wlan0.*.
Nov  3 23:18:19 linux-v2cb kernel:   516.802005] wlan0: no IPv6 routers present


command

linux-v2cb:/home/jonathan # modprobe -rv rt2800pci
FATAL: Module rt2800pci not found.
linux-v2cb:/home/jonathan # modprobe -v rt2860sta
linux-v2cb:/home/jonathan # iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

wlan0     Ralink STA  ESSID:""  Nickname:"RT2860STA"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Link Quality=10/100  Signal level:0 dBm  Noise level:-95 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

linux-v2cb:/home/jonathan # echo "1814 3062" > /sys/bus/pci/drivers/rt2860/new_id
linux-v2cb:/home/jonathan # iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

wlan0     Ralink STA  ESSID:""  Nickname:"RT2860STA"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Link Quality=10/100  Signal level:0 dBm  Noise level:-95 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

linux-v2cb:/home/jonathan # ifconfig wlan0 up
linux-v2cb:/home/jonathan # iwlist wlan0 scan
wlan0     No scan results

suppose I could use nopaste.info more

This looks a little strange, but I think I might have made a mistake here, I told you to remove compat-wireless and then told you to unload rt2800pci with modprobe.

However, after removing the package, all references to rt2800pci were removed from the kernel tree and you could not unload rt2800pci with modprobe.

As a “positive bonus”, we now know the problem is reproducible with rt2800pci.

Reboot your machine to get rid of all rt2x00 modules still loaded and then rerun the commands from my last posting.

after a reboot (ran over my character allowance so put them on nopaste):
monitor
nopaste.info - free nopaste script and service

command
nopaste.info - free nopaste script and service

OK, now there are two little things to test before we move on to the vendor driver.

After all, you will NOT have to compile anything, but I will explain later.

ifconfig wlan0 down

iwconfig wlan0 mode managed

iwconfig wlan0

Now “Mode:Auto” should have changed to “Mode:Managed”

iwconfig wlan0 scan

If there are still no scan results, then the last test will be to try another firmware file.

You have downloaded the vendor driver from Ralink, right?

  1. Unpack the tar.bz2 file and change into the sub directory “common”. You will find a file “rt2860.bin” there.

The md5sum is:

 md5sum common/rt2860.bin 
02eebcd12880ee76bf3cd44c4ccd2b53  common/rt2860.bin

As seen in your monitoring console

Nov  3 23:40:12 linux-v2cb kernel:   201.428377] rt2860 0000:07:01.0: firmware: requesting rt2860.bin

a file with that name was loaded as firmware into the device, this file is located in /lib/firmware.

To have a backup of your original file (from package “kernel-firmware”) copy it as root to /root

cp /lib/firmware/rt2860.bin /root/

Now copy (again as root) the rt2860.bin from the vendor driver to /lib/firmware.

Reload the module rt2860sta and try again.

modprobe -rv rt2860sta

modprobe -v rt2860sta

echo "1814 3062" > /sys/bus/pci/drivers/rt2860/new_id

iwconfig wlan0 mode managed

ifconfig wlan0 up

iwlist wlan0 scan

If there are still no scan results, copy the backup /root/rt2860.bin to /lib/firmware again.

I got this for the first part

linux-v2cb:/home/jonathan # ifconfig wlan0 down
linux-v2cb:/home/jonathan # iwconfig wlan0 mode managed
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Network is down.
linux-v2cb:/home/jonathan # iwconfig wlan0
wlan0     Ralink STA  ESSID:""  Nickname:"RT2860STA"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Link Quality=10/100  Signal level:0 dBm  Noise level:-95 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

do you want to see the ‘monitor’ part

Nope, every driver has its special behavior it seems.

My device wouldn’t allow to change the mode when the device is up, yours won’t allow it, when the device is down.

So try again setting mode to managed without taking the interface down (so no ifconfig wlan down).

I don’t have this mode “Auto” supported with my device, either it is something driver specific or maybe deprecated for devices using mac80211-based drivers.

So try again without that one command to take wlan0 down, to be sure run “ifconfig wlan0 up” before changing the mode.

And last but not least, you are doing a great job here, hopefully there will be a positive result in the end no matter which driver will work.

I tried that and got the following, still says auto but I got a slightly different output

linux-v2cb:/home/jonathan # iwconfig wlan0 mode managed
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Network is down.
linux-v2cb:/home/jonathan # ifconfig wlan0 up
linux-v2cb:/home/jonathan # iwconfig wlan0 mode managed
linux-v2cb:/home/jonathan # iwconfig wlan0
wlan0     Ralink STA  ESSID:""  Nickname:"RT2860STA"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Bit Rate:1 Mb/s   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality=10/100  Signal level:0 dBm  Noise level:-95 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


Perhaps (only a guess) this is another “speciality” of the Ralink vendor drivers (as said before, rt2860sta from staging was derived from that code).

So last test would be the other firmware file, then we can move on to the vendor driver.

now wlan0 has disappeared completely?
i will try that other firmware file then

Update: no scan results again for the other firmware

OK, I think that’s it with rt2860sta.

In the meantime some new packages containing the vendor driver “rt3562sta” should be available in the driver:wireless repo

zypper refresh -r driver_wireless

zypper install rt3562sta-kmp-desktop rt3562sta-common

modprobe -rv rt2860sta

modprobe -v rt3562sta

Hopefully this driver will be compatible with your card and gives gives you positive (scan) results.

Well that finally managed to get my card to scan for networks successfully!
Now I can’t actually get any internet connection, I seem to be able to connect to the router absolutely fine, but no internet, not sure if this is due to my firewall etc. setting are a bit funny or due to my router or still due to the drivers.
Thanks so much for getting me this far!

Jon

Actually, though it does scan successfully, I am unable to connect to my wireless network. At least that’s what it says under status on the computer start button thing(the equivalent of start for windows)

Anyway, in case you gave this up, the maintainers of the driver:/wireless repository provide a well-working package rt3562sta with the vendor driver for different platforms (11.X, Tumbleweed), which works out of the box for me on a
Tenda W322P PCI Adapter based on a RaLink 3062 chipset (currently Tumbleweed based on 11.4)
See Index of /repositories/driver:/wireless