Ralink RT61 PCMCIA wifi transfer speed capped at 130k?

Post Reply
Message
Author
pertek
Posts: 8
Joined: Fri 13 Jun 2008, 10:29

Ralink RT61 PCMCIA wifi transfer speed capped at 130k?

#1 Post by pertek »

Hi there. New to the forums, Puppy has been running nicely on my backup pc (currently my main pc since october 2007!!) for a while now. Wanted some lovely wireless so I got a ralink pcmcia card since it's open sourced.

Ok Everything works fine except it will not do anything faster than 130-140k total. Single or multiple internet downloads at which point websurf pretty much reaches a standstill and transfering to or from samba shares etc..

I tried booting with the devx sfs to compile cvs from serialmonkey but it wont compile. Heres my ifconfig output. wlan0 has been up for a few minutes at this point downloading from my isp's ftp for most of that.

Link encap:Ethernet HWaddr 00:0E:2E:F9:B3:35
inet addr:192.168.1.16 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34890 errors:0 dropped:0 overruns:0 frame:0
TX packets:13550 errors:96 dropped:96 overruns:0 carrier:0
collisions:1622 txqueuelen:1000
RX bytes:48271033 (46.0 MiB) TX bytes:1171403 (1.1 MiB)
Interrupt:11

Im guessing them thar collisions and errors lookin a touch high
Using WPA TKIP, default settings used in the wizard. Same issue occurs in Puppy 3.01,3.99,4.00 they all appear to use the same version. 4.1alpha1&2 wont connect at all.

Thanks for any help in advance, I have been trying to fix this myself and search for solutions for a few weeks now. Cheers

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#2 Post by tempestuous »

I suggest you keep trying the new rt61pci driver in Puppy4.1alpha2.
Use manual configuration commands as explained in the wifi HOWTO here -
http://www.murga-linux.com/puppy/viewtopic.php?t=22469
First try a connection with NO encryption.
Then re-enable encryption and try again. If it fails, refer to "PART 4: Troubleshooting, encryption problems" of the wifi HOWTO.

pertek
Posts: 8
Joined: Fri 13 Jun 2008, 10:29

#3 Post by pertek »

Thank you for your suggestions. Unfortunately I have tried them accross puppy 4.00,4.00 with new kernel and alpha2 still no joy.

In the alpha the commands do not work. A clue i believe is that wlan0 is shown in iwconfig but not ifconfig. Using the wizard it doesnt even recognise that any ap's exist, so no joy.

I also did everything in 4.00 but same deal as before. For a moment I will get full speed (confirmed by counting how much has been downloaded everysecond) but then it will plummet to 130-140k (and stay that way) and the collisions and errors will increase rapidly. An odd thing I noticed is that when connected without encryption the status lights on the card work when using wpa they are blank/off. Heres is the output from ifconfig in 4.00 using iwconfig to setup without encryption. Thanks again for your help.

wlan0 Link encap:Ethernet HWaddr 00:0E:2E:F9:B3:35
inet addr:192.168.1.16 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7219 errors:0 dropped:0 overruns:0 frame:0
TX packets:2456 errors:9 dropped:9 overruns:0 carrier:0
collisions:283 txqueuelen:1000
RX bytes:4830157 (4.6 MiB) TX bytes:236052 (230.5 KiB)
Interrupt:11

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#4 Post by tempestuous »

The Wifi HOWTO I referred to explains a complete series of wifi configuration commands. In your case this command sequence may, indeed, fail at a certain point, but your claim that "In the alpha the commands do not work" is quite misleading to other forum members. The iwconfig commands explained in the Wifi HOWTO most certainly do work, as confirmed in the last few days by forum member fleamour -
http://www.murga-linux.com/puppy/viewtopic.php?t=29313
In fleamour's case, WEP encryption failed, and we are still trying to work out why. When we do find the problem, the Network Wizard will be updated to include the fix.

If you want us to help troubleshoot the exact point of failure you should properly elaborate the commands you used.

pertek
Posts: 8
Joined: Fri 13 Jun 2008, 10:29

#5 Post by pertek »

Apologies for my lack of clarity. Okay I am using an IBM Thinkpad X22 with an Edimax EW-7108PCg (RT2561). Here are my 3 attempts in full detail so you can see where wlan0 is and isn't recognised/exists. Attempted in Puppy 4.1 alpha2. 1.Using No encryption 2. Following PART 3: WPA encryption with Ralink devices 3. Following PART 2: WPA encryption method.

1. No encryption

# iwconfig wlan0 essid Vtoo
# iwconfig wlan0 mode managed
# iwconfig wlan0 key off
# rm -f /var/lib/dhcpcd/*.info
# rm -f /var/run/*.pid
# dhcpcd -t 30 -h puppypc -d wlan0
Info, wlan0: dhcpcd 3.1.8 starting
Error, wlan0: ioctl SIOCSIFFLAGS: No such file or directory
Info, wlan0: exiting
# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:"Vtoo"
Mode:Managed Channel:0 Access Point: Not-Associated
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:D0:59:83:03:35
inet addr:192.168.1.19 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2678 errors:0 dropped:0 overruns:0 frame:0
TX packets:2554 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:661516 (646.0 KiB) TX bytes:212674 (207.6 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5928 (5.7 KiB) TX bytes:5928 (5.7 KiB)
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:D0:59:83:03:35
inet addr:192.168.1.19 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2679 errors:0 dropped:0 overruns:0 frame:0
TX packets:2554 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:661576 (646.0 KiB) TX bytes:212674 (207.6 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5928 (5.7 KiB) TX bytes:5928 (5.7 KiB)

wlan0 Link encap:Ethernet HWaddr 00:0E:2E:F9:B3:35
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wmaster0 Link encap:UNSPEC HWaddr 00-0E-2E-F9-B3-35-00-00-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

#

2.Following PART 3: WPA encryption with Ralink devices
# modprobe rt61pci
# ifconfig wlan0 up
ifconfig: SIOCSIFFLAGS: No such file or directory
# iwpriv wlan0 set NetworkType=Infra
wlan0 no private ioctls.

# iwconfig wlan0 mode managed
# iwpriv wlan0 set AuthMode=WPAPSK
wlan0 no private ioctls.

iwpriv commands are returning errors so i stop there.

3. Following PART 2: WPA encryption method

First I configure /etc/wpa_supplicant.conf

# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3400 (3.3 KiB) TX bytes:3400 (3.3 KiB)

# lsmod
Module Size Used by
snd_mixer_oss 17792 0
snd 59556 1 snd_mixer_oss
soundcore 8800 1 snd
parport_pc 33092 1
lp 13444 0
parport 37740 2 parport_pc,lp
fan 6404 0
serio_raw 7812 0
pcspkr 4224 0
battery 13828 0
thermal 19740 0
button 9104 0
processor 39052 1 thermal
ac 6788 0
e100 36492 0
mii 6400 1 e100
yenta_socket 27148 3
rsrc_nonstatic 13824 1 yenta_socket
intel_agp 27708 1
agpgart 35016 1 intel_agp
fuse 50460 0
unionfs 78180 1
nls_iso8859_1 4992 0
nls_cp437 6656 0
usbhid 31616 0
usb_storage 87104 0
uhci_hcd 25740 0
usbcore 140272 4 usbhid,usb_storage,uhci_hcd
squashfs 48776 1
# modprobe rt61pci
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:D0:59:83:03:35
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5928 (5.7 KiB) TX bytes:5928 (5.7 KiB)

wlan0 Link encap:Ethernet HWaddr 00:0E:2E:F9:B3:35
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wmaster0 Link encap:UNSPEC HWaddr 00-0E-2E-F9-B3-35-00-00-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:""
Mode:Managed Channel:0 Access Point: Not-Associated
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

# ifconfig wlan0 up
ifconfig: SIOCSIFFLAGS: No such file or directory
# iwconfig wlan0 Vtoo
iwconfig: unknown command "Vtoo"
# iwconfig wlan0 essid Vtoo
# iwconfig wlan0 key open edit:mykey
iwconfig: unknown command "edit:mykey"
# rm /var/run/wpa_supplicant/*
rm: cannot remove `/var/run/wpa_supplicant/*': No such file or directory
# wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant.conf -dd
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=2
update_config=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=4):
56 74 6f 6f Vtoo
PSK (ASCII passphrase) - hexdump_ascii(len=18): [REMOVED]
proto: 0x1
key_mgmt: 0x2
pairwise: 0x8
group: 0x8
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='Vtoo'
Initializing interface (2) 'wlan0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCSIFFLAGS: No such file or directory
Could not set interface 'wlan0' UP
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:0e:2e:f9:b3:35
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
l2_packet_receive - recvfrom: Network is down
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'Vtoo'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 60 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b1a len=12
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:00:00:00:00:00 into blacklist
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'Vtoo'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 60 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b1a len=12
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:00:00:00:00:00 blacklist count incremented to 5
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'Vtoo'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 60 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b1a len=12
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:00:00:00:00:00 blacklist count incremented to 6
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'Vtoo'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 60 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b1a len=12
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:00:00:00:00:00 blacklist count incremented to 7
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'Vtoo'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 60 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b1a len=12

The prompt does not return, so the following from a new terminal.
Although I didnt illustrate this in the above process using 'ifconfig wlano0 up' and 'ifconfig' commands output the same results if used immediatly after loading the rt61pci module. i.e. no wlan0

# rm /etc/dhcpc/*.pid
rm: cannot remove `/etc/dhcpc/*.pid': No such file or directory
# dhcpcd -t 30 -h puppypc wlan0
Error, wlan0: ioctl SIOCSIFFLAGS: No such file or directory
# ifconfig wlan0 up
ifconfig: SIOCSIFFLAGS: No such file or directory
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5928 (5.7 KiB) TX bytes:5928 (5.7 KiB)
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:D0:59:83:03:35
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5928 (5.7 KiB) TX bytes:5928 (5.7 KiB)

wlan0 Link encap:Ethernet HWaddr 00:0E:2E:F9:B3:35
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wmaster0 Link encap:UNSPEC HWaddr 00-0E-2E-F9-B3-35-00-00-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:"Vtoo"
Mode:Managed Channel:0 Access Point: Not-Associated
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
# ifconfig wmaster0 down
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:D0:59:83:03:35
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5928 (5.7 KiB) TX bytes:5928 (5.7 KiB)

wlan0 Link encap:Ethernet HWaddr 00:0E:2E:F9:B3:35
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wmaster0 Link encap:UNSPEC HWaddr 00-0E-2E-F9-B3-35-00-00-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

#

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#6 Post by tempestuous »

Good reporting.
pertek wrote:# ifconfig wlan0 up
ifconfig: SIOCSIFFLAGS: No such file or directory
That's a major problem. It appears that the rt61pci module has loaded and created an interface (wlan0) but this interface is problematic.
After loading the rt61pci module, check dmesg to see if there are any clues about how the module loaded.

pertek
Posts: 8
Joined: Fri 13 Jun 2008, 10:29

#7 Post by pertek »

dmesg, what a useful command!
phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.

Terminal output:
#ifconfig wlan0 up
ifconfig: SIOCSIFFLAGS: No such file or directory
#dmesg
'snip' Relevent section
pccard: CardBus card inserted into slot 0
PCI: Enabling device 0000:03:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:03:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:03:00.0 to 64
phy0: Selected rate control algorithm 'pid'
phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.

# lsmod
Module Size Used by
arc4 2944 2
ecb 4608 2
crypto_blkcipher 20868 1 ecb
rt61pci 24576 0
rt2x00pci 11648 1 rt61pci
rt2x00lib 24704 2 rt61pci,rt2x00pci
rfkill 8212 1 rt2x00lib
input_polldev 5896 1 rt2x00lib
crc_itu_t 3072 1 rt2x00lib
mac80211 132364 2 rt2x00pci,rt2x00lib
cfg80211 19848 1 mac80211
eeprom_93cx6 3200 1 rt61pci
snd_mixer_oss 17792 0
snd 59556 1 snd_mixer_oss
soundcore 8800 1 snd
parport_pc 33092 1
lp 13444 0
parport 37740 2 parport_pc,lp
fan 6404 0
serio_raw 7812 0
pcspkr 4224 0
battery 13828 0
thermal 19740 0
button 9104 0
processor 39052 1 thermal
ac 6788 0
e100 36492 0
mii 6400 1 e100
yenta_socket 27148 3
rsrc_nonstatic 13824 1 yenta_socket
intel_agp 27708 1
agpgart 35016 1 intel_agp
fuse 50460 0
unionfs 78180 1
nls_iso8859_1 4992 0
nls_cp437 6656 0
usbhid 31616 0
usb_storage 87104 0
uhci_hcd 25740 0
usbcore 140272 4 usbhid,usb_storage,uhci_hcd
squashfs 48776 1
#

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#8 Post by tempestuous »

pertek wrote:phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
OK, there's a troubleshooting process you need to follow.
1. Check if the firmware exists in /lib/firmware (ignore /lib/all-firmware)
There should be 3 firmware files there -
rt2561.bin
rt2561s.bin
rt2661.bin

I see a slight error in the firmware installation script - /lib/modules/firmware.dep.2.6.25.4 -

Code: Select all

rt2x00:rt2x00pci.ko,rt2x00usb.ko,rt61pc.ko,rt73usb.ko,rt2400pci.ko,rt2500pci.ko,rt2500usb.ko
"rt61pc.ko" should be "rt61pci.ko" ... but I would expect that the sub-modules would install the firmware, anyway.
If the firmware does not exist, install the dotpet I now attach.

2. Firmware loading in Puppy4.1alpha2is broken during bootup. So if your rt61pci module has loaded automatically at bootup, make sure you unload it, then reload it, like this -

Code: Select all

rmmod rt61pci
modprobe rt61pci
3. I see that the rt61pci module supports rfkill, so make sure that there is not some button on your computer which needs to be pressed to enable the wifi device.
Attachments
rt61pci-firmware.pet
(7.85 KiB) Downloaded 409 times

pertek
Posts: 8
Joined: Fri 13 Jun 2008, 10:29

#9 Post by pertek »

The firmware files were not there so I installed the .pet and that worked.I noticed that alpha2 iso dos not contain a zrdv_***.sfs (and therefore my install as I install puppy manualy) like previous releases. I assume its supposed to be that way. I downloaded it again from the ibiblio ftp to be sure.

Success, partly... With NO encyption we're laughing (termial setup and wizard) but not with WPA through command line or wizard,
'No keys have been configured - skip key clearing' occurs often in the output using wpa_supplicant with wext or ralink. I have indeed setup and double checked the wpa conf file.


"I see a slight error in the firmware installation script - /lib/modules/firmware.dep.2.6.25.4 -
Code:
rt2x00:rt2x00pci.ko,rt2x00usb.ko,rt61pc.ko,rt73usb.ko,rt2400pci.ko,rt2500pci.ko,rt2500usb.ko"

I cant find any of that info in my post or find that file, I take it your looking at the source?

Ralink way

# ifconfig wlan0 up
# iwpriv wlan0 set NetworkType=Infra
wlan0 no private ioctls.

wpa_supplicant way

Using wext
# modprobe rt61pci
# ifconfig wlan0 up
# rm /var/run/wpa_supplicant/*
rm: cannot remove `/var/run/wpa_supplicant/*': No such file or directory
# rm /var/run/wpa_supplicant/*
rm: cannot remove `/var/run/wpa_supplicant/*': No such file or directory
# wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant.conf -dd
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctr l_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=2
update_config=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=4):
56 74 6f 6f Vtoo
PSK (ASCII passphrase) - hexdump_ascii(len=18): [REMOVED]
proto: 0x1
key_mgmt: 0x2
pairwise: 0x8
group: 0x8
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='Vtoo'
Initializing interface (2) 'wlan0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:0e:2e:f9:b3:35
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'Vtoo'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 60 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=12
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:00:00:00:00:00 into blacklist
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'Vtoo'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 60 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 486 bytes of scan results (2 BSSes)
Scan results: 2
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:00:00:00:00:00 blacklist count incremented to 2
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'Vtoo'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 60 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 486 bytes of scan results (2 BSSes)
Scan results: 2
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:00:00:00:00:00 blacklist count incremented to 3
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'Vtoo'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 60 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 0 bytes of scan results (0 BSSes)
Scan results: 0

# rm /etc/dhcpc/*.pid
rm: cannot remove `/etc/dhcpc/*.pid': No such file or directory
# dhcpcd -t 30 -h puppypc -d wlan0
Info, wlan0: dhcpcd 3.1.8 starting
Info, wlan0: hardware address = 00:0e:2e:f9:b3:35
Info, wlan0: DUID = 00:01:00:01:0f:e6:ef:b4:00:0e:2e:f9:b3:35
Info, wlan0: broadcasting for a lease
Debug, wlan0: sending DHCP_DISCOVER with xid 0x12bc771c
Debug, wlan0: waiting on select for 30 seconds
Debug, wlan0: sending DHCP_DISCOVER with xid 0x12bc771c
Debug, wlan0: sending DHCP_DISCOVER with xid 0x12bc771c
Debug, wlan0: sending DHCP_DISCOVER with xid 0x12bc771c
Debug, wlan0: sending DHCP_DISCOVER with xid 0x12bc771c
Debug, wlan0: sending DHCP_DISCOVER with xid 0x12bc771c
Debug, wlan0: sending DHCP_DISCOVER with xid 0x12bc771c
Debug, wlan0: sending DHCP_DISCOVER with xid 0x12bc771c
Debug, wlan0: sending DHCP_DISCOVER with xid 0x12bc771c
Debug, wlan0: sending DHCP_DISCOVER with xid 0x12bc771c
Error, wlan0: timed out
Info, wlan0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-wlan0.info'
Error, wlan0: lease information file `/var/lib/dhcpcd/dhcpcd-wlan0.info' does not exist
Info, wlan0: probing for an IPV4LL address
Debug, wlan0: sending ARP probe #1
Debug, wlan0: sending ARP probe #2
Debug, wlan0: sending ARP probe #3
Debug, wlan0: sending ARP claim #1
Debug, wlan0: sending ARP claim #2
Warning, wlan0: using IPV4LL address 169.254.180.235
Info, wlan0: adding IP address 169.254.180.235/16
Debug, wlan0: no dns information to write
Debug, wlan0: writing /var/lib/dhcpcd/dhcpcd-wlan0.info
Debug, wlan0: exec "/etc/dhcpcd.sh" "/var/lib/dhcpcd/dhcpcd-wlan0.info" "new"
Debug, wlan0: forking to background
#

dmesg snip
pccard: CardBus card inserted into slot 0
PCI: Enabling device 0000:03:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:03:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:03:00.0 to 64
phy0: Selected rate control algorithm 'pid'
unionfs: new lower inode mtime (bindex=0, name=etc)

Unloaded,loaded module and rm config files. Manualy loaded WPA modules and repeated the above process. No change.

# modprobe ieee80211_crypt_ccmp
# modprobe ieee80211_crypt_tkip
# modprobe crc32c
#

Resart puppy, installed .pet loaded wpa modules followed guide.

Snip
# wpa_supplicant -i wlan0 -D ralink -c /etc/wpa_supplicant.conf -dd
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'ralink' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=2
update_config=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=4):
56 74 6f 6f Vtoo
PSK (ASCII passphrase) - hexdump_ascii(len=18): [REMOVED]
proto: 0x1
key_mgmt: 0x2
pairwise: 0x8
group: 0x8
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='Vtoo'
Initializing interface (2) 'wlan0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_ralink_init
ralink_set_iface_flags
ralink_get_we_version_compiled: failed
wpa_driver_ralink_flush_pmkid
NDIS: OID_802_11_PMKID (flush) - hexdump(len=8): 08 00 00 00 00 00 00 00
ralink_set_oid: oid=0x620 len (8) failed
ralink_set_oid: oid=0x621 len (1) failed
RALINK: Failed to set RT_OID_WPA_SUPPLICANT_SUPPORT(1)
Own MAC address: 00:0e:2e:f9:b3:35
wpa_driver_ralink_set_key
wpa_driver_ralink_get_bssid
wpa_driver_ralink_remove_key
ralink_set_oid: oid=0x519 len (16) failed
wpa_driver_ralink_set_key
wpa_driver_ralink_get_bssid
wpa_driver_ralink_remove_key
ralink_set_oid: oid=0x519 len (16) failed
wpa_driver_ralink_set_key
wpa_driver_ralink_get_bssid
wpa_driver_ralink_remove_key
ralink_set_oid: oid=0x519 len (16) failed
wpa_driver_ralink_set_key
wpa_driver_ralink_get_bssid
wpa_driver_ralink_remove_key
ralink_set_oid: oid=0x519 len (16) failed
Setting scan request: 0 sec 100000 usec
Using existing control interface directory.
Added interface wlan0
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'Vtoo'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
wpa_driver_ralink_associate
ralink_set_oid: oid=0x512 len (4) failed
RALINK: Failed to set OID_802_11_INFRASTRUCTURE_MODE (1)
ralink_set_auth_mode
ralink_set_oid: oid=0x511 len (4) failed
RALINK: Failed to set OID_802_11_AUTHENTICATION_MODE (4)
ralink_set_oid: oid=0x617 len (1) failed
RALINK: Failed to set OID_802_11_SET_IEEE8021X(0)
ralink_set_oid: oid=0x510 len (4) failed
RALINK: Failed to set OID_802_11_WEP_STATUS(4)
wpa_driver_ralink_set_ssid
ioctl[RT_PRIV_IOCTL] -- OID_802_11_SSID: Operation not supported
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
^Z
[1]+ Stopped wpa_supplicant -i wlan0 -D ralink -c /etc/wpa_supplicant.conf -dd
#

Stopped is it just repeats.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#10 Post by tempestuous »

Well it's good that you got the rt61pci module working properly, but unfortunately encryption appears to be broken in the Puppy4.1 alphas.
pertek wrote:I cant find any of that info in my post or find that file ... /lib/modules/firmware.dep.2.6.25.4
I'm away from my main computer and I'm using the older 4.1alpha1 CD.
pertek wrote:I noticed that alpha2 iso dos not contain a zrdv_***.sfs
I think all modules are now in the initrd.

Your wpa_supplicant command is exactly correct, but going back through your earlier posts I don't see reference to the aes_generic module, which is necessary for WPA encryption.
So if you can be bothered testing again, check your /etc/wpa_supplicant2.conf file, then here is the complete command sequence for WPA -

Code: Select all

rmmod rt61pci
modprobe rt61pci

modprobe aes_generic
modprobe crc32c

ifconfig wlan0 up
rm /var/run/wpa_supplicant/*
wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant2.conf -dd
Then open a second console, and do this -

Code: Select all

rm -f /var/lib/dhcpcd/*.info
rm -f /var/run/*.pid
dhcpcd -t 30 -h puppypc -d wlan0
Don't bother trying the "ralink" -D parameter, because only the old rt61 module is compatible with this.
Similarly, don't bother trying the Ralink "iwpriv" method of WPA configuration.

It might also be worth testing WEP encryption, if your router can easily be configured for WEP. Here is the complete command sequence (replace "MY_ESSID" with your SSID, and "1234567890" with your WEP key) -

Code: Select all

rmmod rt61pci
modprobe rt61pci

modprobe arc4
modprobe ecb
modprobe crypto_blkcipher

ifconfig wlan0 up
iwconfig wlan0 essid MY_ESSID
iwconfig wlan0 key open 1234567890
iwconfig wlan0 mode managed

rm -f /var/lib/dhcpcd/*.info
rm -f /var/run/*.pid
dhcpcd -t 30 -h puppypc -d wlan0

pertek
Posts: 8
Joined: Fri 13 Jun 2008, 10:29

#11 Post by pertek »

I had loaded the aes module on other attempts, though I had assumed it wasn't necessary as I was using TKIP. Just to be sure I did so again but no luck.
I'll give it another try in the next test release and post back here.

To clarify are you a puppy developer or an incredibly active forum member/contributer. I had the impression it was just one guy, Barry. I ask because I wondered whether the information from this thread goes to the right people or if it should be posted elsewhere.

Thank you very much for your help. Roll on 4.1 beta.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#12 Post by tempestuous »

pertek wrote:I had loaded the aes module on other attempts, though I had assumed it wasn't necessary as I was using TKIP.
I see you are using the /etc/wpa_supplicant2.conf configuration file, so I assumed your wifi router is set for WPA2, and my understanding is that WPA2 is always AES, never TKIP.
pertek wrote:I wondered whether the information from this thread goes to the right people
I summarize information such as this and post it on the Developer News Blog -
http://puppylinux.com/blog/

There is a very active community of developers here who "feed" Barry with information and suggestions. Those ideas which don't their way into a final release often end up as Puppy derivatives. One example which springs to mind is a Puppy version (wNOP) with XFCE window manager and Compiz-Fusion 3D desktop.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#13 Post by tempestuous »

I see that forum member JustGreg had success with WPA2 and the rt73usb module -
http://www.murga-linux.com/puppy/viewto ... 988#206988
From his results it appears that WPA(2) encryption possibly requires these 3 modules -
arc4
ecb
crypto_blkcipher

in addition to aes_generic and crc32c.
Worth a try.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#14 Post by tempestuous »

pertek, upgraded rt61pci module and underlying wifi stack are now available here -
http://www.murga-linux.com/puppy/viewto ... 308#207308

pertek
Posts: 8
Joined: Fri 13 Jun 2008, 10:29

#15 Post by pertek »

I havent been using wpa2, only wpa.
I'll give that new .pet a go and II think the firmware .pet is also required.
Though I thought the problem was in wpa_supplicant..

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#16 Post by tempestuous »

pertek wrote:I havent been using wpa2, only wpa.
Then you should be using /etc/wpa_supplicant.conf, not /etc/wpa_supplicant2.conf.
I hope this wasn't the problem all along ...

pertek
Posts: 8
Joined: Fri 13 Jun 2008, 10:29

#17 Post by pertek »

:shock: ....nope. Using the correct conf. Search the thread I never even mentioned the wpa2 conf.

Anywho. I tried out the new pet with and without the firmware pet. Without it I received the same errors as before. Using both (installing firmware pet first) I recieved a fresh batch from dmesg. Also the rt61pci wouldnt load. Heres the output:

-snip-
pccard: CardBus card inserted into slot 0
eeprom_93cx6: no version for "struct_module" found: kernel tainted.
mac80211: disagrees about version of symbol wiphy_register
mac80211: Unknown symbol wiphy_register
mac80211: disagrees about version of symbol wiphy_new
mac80211: Unknown symbol wiphy_new
mac80211: disagrees about version of symbol wiphy_unregister
mac80211: Unknown symbol wiphy_unregister
mac80211: disagrees about version of symbol wiphy_free
mac80211: Unknown symbol wiphy_free
rt2x00lib: disagrees about version of symbol ieee80211_register_hw
rt2x00lib: Unknown symbol ieee80211_register_hw
rt2x00lib: disagrees about version of symbol ieee80211_tx_status_irqsafe
rt2x00lib: Unknown symbol ieee80211_tx_status_irqsafe
rt2x00lib: disagrees about version of symbol ieee80211_ctstoself_get
rt2x00lib: Unknown symbol ieee80211_ctstoself_get
rt2x00lib: Unknown symbol ieee80211_start_queues
rt2x00lib: disagrees about version of symbol ieee80211_stop_queue
rt2x00lib: Unknown symbol ieee80211_stop_queue
rt2x00lib: disagrees about version of symbol ieee80211_stop_queues
rt2x00lib: Unknown symbol ieee80211_stop_queues
rt2x00lib: disagrees about version of symbol ieee80211_unregister_hw
rt2x00lib: Unknown symbol ieee80211_unregister_hw
rt2x00lib: disagrees about version of symbol ieee80211_rts_get
rt2x00lib: Unknown symbol ieee80211_rts_get
rt2x00lib: disagrees about version of symbol ieee80211_beacon_get
rt2x00lib: Unknown symbol ieee80211_beacon_get
rt2x00lib: Unknown symbol ieee80211_register_hwmode
rt2x00lib: disagrees about version of symbol ieee80211_rx_irqsafe
rt2x00lib: Unknown symbol ieee80211_rx_irqsafe
rt61pci: disagrees about version of symbol rt2x00mac_add_interface
rt61pci: Unknown symbol rt2x00mac_add_interface
rt61pci: disagrees about version of symbol rt2x00mac_get_stats
rt61pci: Unknown symbol rt2x00mac_get_stats
rt61pci: disagrees about version of symbol rt2x00pci_initialize
rt61pci: Unknown symbol rt2x00pci_initialize
rt61pci: Unknown symbol rt2x00lib_get_ring
rt61pci: disagrees about version of symbol rt2x00pci_uninitialize
rt61pci: Unknown symbol rt2x00pci_uninitialize
rt61pci: disagrees about version of symbol rt2x00pci_suspend
rt61pci: Unknown symbol rt2x00pci_suspend
rt61pci: disagrees about version of symbol rt2x00mac_config_interface
rt61pci: Unknown symbol rt2x00mac_config_interface
rt61pci: disagrees about version of symbol rt2x00pci_remove
rt61pci: Unknown symbol rt2x00pci_remove
rt61pci: disagrees about version of symbol rt2x00mac_remove_interface
rt61pci: Unknown symbol rt2x00mac_remove_interface
rt61pci: disagrees about version of symbol rt2x00mac_config
rt61pci: Unknown symbol rt2x00mac_config
rt61pci: Unknown symbol rt2x00lib_write_tx_desc
rt61pci: disagrees about version of symbol rt2x00mac_conf_tx
rt61pci: Unknown symbol rt2x00mac_conf_tx
rt61pci: disagrees about version of symbol rt2x00mac_start
rt61pci: Unknown symbol rt2x00mac_start
rt61pci: disagrees about version of symbol rt2x00pci_txdone
rt61pci: Unknown symbol rt2x00pci_txdone
rt61pci: disagrees about version of symbol rt2x00mac_stop
rt61pci: Unknown symbol rt2x00mac_stop
rt61pci: disagrees about version of symbol rt2x00mac_tx
rt61pci: Unknown symbol rt2x00mac_tx
rt61pci: disagrees about version of symbol rt2x00pci_resume
rt61pci: Unknown symbol rt2x00pci_resume
rt61pci: disagrees about version of symbol rt2x00pci_probe
rt61pci: Unknown symbol rt2x00pci_probe
rt61pci: disagrees about version of symbol rt2x00mac_get_tx_stats
rt61pci: Unknown symbol rt2x00mac_get_tx_stats
rt61pci: disagrees about version of symbol rt2x00pci_rxdone
rt61pci: Unknown symbol rt2x00pci_rxdone
rt61pci: disagrees about version of symbol rt2x00mac_bss_info_changed
rt61pci: Unknown symbol rt2x00mac_bss_info_changed
rt61pci: disagrees about version of symbol rt2x00pci_write_tx_data
rt61pci: Unknown symbol rt2x00pci_write_tx_data
rt61pci: disagrees about version of symbol rt2x00mac_add_interface
rt61pci: Unknown symbol rt2x00mac_add_interface
rt61pci: disagrees about version of symbol rt2x00mac_get_stats
rt61pci: Unknown symbol rt2x00mac_get_stats
rt61pci: disagrees about version of symbol rt2x00pci_initialize
rt61pci: Unknown symbol rt2x00pci_initialize
rt61pci: Unknown symbol rt2x00lib_get_ring
rt61pci: disagrees about version of symbol rt2x00pci_uninitialize
rt61pci: Unknown symbol rt2x00pci_uninitialize
rt61pci: disagrees about version of symbol rt2x00pci_suspend
rt61pci: Unknown symbol rt2x00pci_suspend
rt61pci: disagrees about version of symbol rt2x00mac_config_interface
rt61pci: Unknown symbol rt2x00mac_config_interface
rt61pci: disagrees about version of symbol rt2x00pci_remove
rt61pci: Unknown symbol rt2x00pci_remove
rt61pci: disagrees about version of symbol rt2x00mac_remove_interface
rt61pci: Unknown symbol rt2x00mac_remove_interface
rt61pci: disagrees about version of symbol rt2x00mac_config
rt61pci: Unknown symbol rt2x00mac_config
rt61pci: Unknown symbol rt2x00lib_write_tx_desc
rt61pci: disagrees about version of symbol rt2x00mac_conf_tx
rt61pci: Unknown symbol rt2x00mac_conf_tx
rt61pci: disagrees about version of symbol rt2x00mac_start
rt61pci: Unknown symbol rt2x00mac_start
rt61pci: disagrees about version of symbol rt2x00pci_txdone
rt61pci: Unknown symbol rt2x00pci_txdone
rt61pci: disagrees about version of symbol rt2x00mac_stop
rt61pci: Unknown symbol rt2x00mac_stop
rt61pci: disagrees about version of symbol rt2x00mac_tx
rt61pci: Unknown symbol rt2x00mac_tx
rt61pci: disagrees about version of symbol rt2x00pci_resume
rt61pci: Unknown symbol rt2x00pci_resume
rt61pci: disagrees about version of symbol rt2x00pci_probe
rt61pci: Unknown symbol rt2x00pci_probe
rt61pci: disagrees about version of symbol rt2x00mac_get_tx_stats
rt61pci: Unknown symbol rt2x00mac_get_tx_stats
rt61pci: disagrees about version of symbol rt2x00pci_rxdone
rt61pci: Unknown symbol rt2x00pci_rxdone
rt61pci: disagrees about version of symbol rt2x00mac_bss_info_changed
rt61pci: Unknown symbol rt2x00mac_bss_info_changed
rt61pci: disagrees about version of symbol rt2x00pci_write_tx_data
rt61pci: Unknown symbol rt2x00pci_write_tx_data
rt61pci: Unknown wpa2 symbol on puppy butt
rt61pci: disagrees about wpa2 existence
rt61pci: Unknown emotion doesnt want to work today
rt61pci: disagrees with puppy
rt61pci: Uknown fight to the death
# lsmod
Module Size Used by
rt2x00pci 9600 0
rt2x00lib 27648 1 rt2x00pci
rfkill 8212 1 rt2x00lib
mac80211 161820 2 rt2x00pci,rt2x00lib
input_polldev 5896 1 rt2x00lib
cfg80211 25864 2 rt2x00lib,mac80211
crc_itu_t 3072 0
eeprom_93cx6 3072 0
snd_mixer_oss 17792 0
snd 59556 1 snd_mixer_oss
soundcore 8800 1 snd
parport_pc 33092 1
lp 13444 0
parport 37740 2 parport_pc,lp
fan 6404 0
serio_raw 7812 0
pcspkr 4224 0
battery 13828 0
thermal 19740 0
button 9104 0
processor 39052 1 thermal
ac 6788 0
e100 36492 0
mii 6400 1 e100
yenta_socket 27148 3
rsrc_nonstatic 13824 1 yenta_socket
intel_agp 27708 1
agpgart 35016 1 intel_agp
fuse 50460 0
unionfs 78180 1
nls_iso8859_1 4992 0
nls_cp437 6656 0
usbhid 31616 0
usb_storage 87104 0
uhci_hcd 25740 0
usbcore 140272 4 usbhid,usb_storage,uhci_hcd
squashfs 48776 1
# modprobe rt61pci
FATAL: Error inserting rt61pci (/lib/modules/2.6.25.4/kernel/drivers/net/wireless/rt2x00/rt61pci.ko): Unknown symbol in module, or unknown parameter (see dmesg)
#

dmesg had no additional output to the above.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#18 Post by tempestuous »

Sorry, regarding wpa_supplicant.conf2 I was confusing you with forum member ohyes.

EDIT: ohyes has now achieved success, but we have discovered that the upgraded wifi modules fail to load the other modules they depend on.
The solution is to unload/reload all modules in the correct sequence.
Assuming your Puppy4.1alpha2 installation still has rt61pci-firmware.pet and the new wifi-2008-06-15-k2.6.25.4.pet, your process should be -

Code: Select all

rmmod rt61pci
rmmod rt2x00lib
rmmod rfkill
rmmod crc-itu-t
rmmod input-polldev
rmmod mac80211
rmmod cfg80211
modprobe cfg80211
modprobe mac80211
modprobe input-polldev
modprobe crc-itu-t
modprobe rfkill
modprobe rt2x00lib
modprobe rt61pci
Then do "ifconfig wlan0 up" and continue with configuration.

Post Reply