You are not logged in.

#1 2008-05-28 11:08:56

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

please help with WPA (I know I'm close)

Man, I am completely stumped here, so here goes.

My wireless device (which has a rt2870 chip) has so far proven itself perfectly capable of connecting to my wireless network....except with WPA. I know for sure that the device itself supports wpa because wpa works under windows and, well, the driver's source code has wpa implementation.

I have tried using the network profile configured to use wpa as follows

CONNECTION="wireless"
INTERFACE=ra0
SCAN="no"
ESSID="aptd"
SECURITY="wpa"
Key="mykeythatiwillnottellyou"
IP="dhcp"
TIMEOUT=20

and it times out

In addition, I have also tried configuring that profile to use wpa_supplicant

Here is /etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ap_scan=0

network={
        mode=0
        ssid="aptd"
        scan_ssid=0
        proto=WPA
        key_mgmt=WPA-PSK
        auth_alg=OPEN
        pairwise=TKIP
        group=TKIP
        #psk="abc"
        psk=abcdefghijklmnopqrstuvwxyz
        priority=0
}

and it still times out >_<

So right now I am hoping I can get some help from fellow arch users.

Does anyone have any ideas?

By the way, I have my router set to accept both TKIP and AES so it should allow either encryptions, right? or could that be the root of the problem?

Offline

#2 2008-05-28 11:27:39

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: please help with WPA (I know I'm close)

I've seen in the wiki that sometime increasing the "TIMEOUT=" value can help with some issue
http://wiki.archlinux.org/index.php/Netcfg
have you already tried to increase it?

Offline

#3 2008-05-28 11:56:12

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: please help with WPA (I know I'm close)

Well, I tried setting TIMEOUT to two minutes (120 seconds) and that didn't help.

By the way, here what the wiki asks

ifconfig -a

eth0      Link encap:Ethernet  HWaddr 00:40:05:00:32:62
          inet addr:192.168.1.131  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::240:5ff:fe00:3262/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39896 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34881 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28840853 (27.5 Mb)  TX bytes:5295842 (5.0 Mb)
          Interrupt:18 Base address:0xcf00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:137 errors:0 dropped:0 overruns:0 frame:0
          TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:12316 (12.0 Kb)  TX bytes:12316 (12.0 Kb)

ra0       Link encap:Ethernet  HWaddr 00:08:54:AD:E1:3A
          inet addr:169.254.51.186  Bcast:169.254.255.255  Mask:255.255.0.0
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:3096 errors:0 dropped:0 overruns:0 frame:0
          TX packets:640 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:341402 (333.4 Kb)  TX bytes:46816 (45.7 Kb)

iwconfig

lo        no wireless extensions.

eth0      no wireless extensions.

ra0       RT2870 Wireless  ESSID:""  Nickname:"RT2870STA"
          Mode:Auto  Frequency=2.447 GHz  Bit Rate=1 Mb/s   
          RTS thr:off   Fragment thr:off
          Link Quality=78/100  Signal level:-60 dBm  Noise level:-71 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

the profile

CONNECTION="wireless"
INTERFACE=ra0
SCAN="yes"
SECURITY="wpa"
ESSID="aptd"
KEY="<censored>"
IP="dhcp"
TIMEOUT=120

and lsmod

Module                  Size  Used by
isofs                  32036  0
zlib_inflate           18560  1 isofs
udf                    82212  0
rt2870sta             489556  0
nvidia               7816704  24
agpgart                28244  1 nvidia
vmix                   12468  3
ossusb                 60680  3
envy24ht               82544  5
osscore               544920  7 vmix,ossusb,envy24ht
ipv6                  256196  14
psmouse                36880  0
serio_raw               5508  0
usb_storage            84672  0
i2c_i801                9232  0
i2c_core               19348  2 nvidia,i2c_i801
sg                     27188  0
joydev                 10048  0
dcdbas                  7200  0
evdev                   9472  3
thermal                15260  0
processor              32096  1 thermal
fan                     4356  0
button                  6416  0
battery                10372  0
ac                      4484  0
fuse                   42524  12
cpufreq_userspace       3412  0
cpufreq_ondemand        7180  1
cpufreq_conservative     6664  0
cpufreq_powersave       1920  0
p4_clockmod             4628  1
speedstep_lib           4740  1 p4_clockmod
freq_table              4112  2 cpufreq_ondemand,p4_clockmod
vboxdrv                57264  0
8139too                22784  0
mii                     4992  1 8139too
rtc_cmos                9120  0
rtc_core               15516  1 rtc_cmos
rtc_lib                 2944  1 rtc_core
ext3                  123912  1
jbd                    44052  1 ext3
mbcache                 7172  1 ext3
usbhid                 42944  0
hid                    39168  1 usbhid
ff_memless              5128  1 usbhid
sd_mod                 23320  9
sr_mod                 15300  0
cdrom                  33952  1 sr_mod
ehci_hcd               33804  0
uhci_hcd               22288  0
usbcore               129776  7 rt2870sta,ossusb,usb_storage,usbhid,ehci_hcd,uhci_hcd
ata_piix               17668  7
ata_generic             5636  0
libata                141840  2 ata_piix,ata_generic
scsi_mod               92204  5 usb_storage,sg,sd_mod,sr_mod,libata
dock                    7952  1 libata

Offline

#4 2008-05-28 16:05:55

amokkk
Member
From: PL
Registered: 2008-04-18
Posts: 51
Website

Re: please help with WPA (I know I'm close)

hi
my card also supports wpa encryption but i couldn't get it to work without using wpa _supplicant.
here's my config:

profile:

CONNECTION="wireless"
DESCRIPTION="wifi"
INTERFACE="****" 
HOSTNAME="****"
IP="dhcp"
SECURITY=wpa-config
WPA_CONF="/etc/wpa_supplicant.conf"

wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
eapol_version=1
fast_reauth=1

network={
       ssid="****"
       proto=WPA
       key_mgmt=WPA-PSK
       psk="****"
       priority=1

Last edited by amokkk (2008-05-28 16:07:30)


Through the darkness of future past / The magician longs to see / One chants out between two worlds / Fire walk with me.
bobik_the_traveller: Dell LS/p3 400/128/40/Sony Ericsson GC79,Philips SNN6500
LAST.FM

Offline

#5 2008-05-29 10:29:32

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: please help with WPA (I know I'm close)

well, after trying to connect to my router set to other types of security (WEP, WPA2PSK, etc), I have concluded that the drivers have a faulty way of setting security settings

guess I'm going to have to email ralink again

Offline

#6 2008-05-29 10:46:34

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: please help with WPA (I know I'm close)

AFAIR the legacy ralink drivers use iwpriv commands for wpa. I use the 2573 USB chipset myself, and I had to use iwpriv with the legacy driver, before full support was provided by the rt2x00 driver. This, of course, could have changed for 2870.

If you want to use iwpriv with netcfg, you would have to use the PRE_UP option to issue the appropriate commands.

Offline

#7 2008-05-29 11:56:09

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: please help with WPA (I know I'm close)

Yeah, I did that too and it didn't work.

The fact that I was able to connect to my wireless network with the security turned off (and using SECURITY="none") tells me that there is iwconfig support now.

Strange thing is that, with the presence of the /etc/Wireless/RT2870STA/RT2870STA.dat, I do not think I should be configuring with a net profile (nor should I have to use iwpriv, iwconfig). Especially since the iwconfig settings seem to be fine when just doing ifconfig ra0 up; it's like it's just waiting to be connected to a dhcp server.

How do I connect manually?

[edit]
For example, if I do ifconfig ra0 up, iwconfig gives me

ra0       RT2870 Wireless  ESSID:"aptd"  Nickname:"RT2870STA"
          Mode:Managed  Frequency=2.447 GHz  Access Point: 00:18:F8:C1:65:92   
          Bit Rate=54 Mb/s   
          RTS thr:off   Fragment thr:off
          Encryption key:I-CAN-EVEN-SEE-THE-KEY
          Link Quality=84/100  Signal level:-54 dBm  Noise level:-71 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

what in the heck is going on?!

Last edited by NoOneImportant (2008-05-29 12:06:53)

Offline

#8 2008-05-29 18:08:01

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: please help with WPA (I know I'm close)

OK, that link looks good. Where did you specify the ESSID and key?

dhcpcd ra0

should work once you get to that stage.

Offline

#9 2008-05-29 18:57:37

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: please help with WPA (I know I'm close)

I tried dhcpcd ra0 after posting that and it timed out; I'll play with it more tonight

I specified the essid and key in the dat file

Default
CountryRegion=0
CountryCode=US
ChannelGeography=1
SSID=aptd
NetworkType=Infra
WirelessMode=9
Channel=8
AuthMode=WPAPSK
EncrypType=TKIP
WPAPSK=ReallyLongKeyGeneratedByWpaSupplicant
WirelessEvent=1
WmmCapable=0
FastRoaming=0
PSMode=CAM
RTSThreshold=2347
FragThreshold=2346

There's also a bunch of other options in the example provided in the driver's source, but I don't know wtf they do.

In addition, after bringing up the device, the settings shown by iwconfig keeps on resetting

it could be that I did something wrong as well

Last edited by NoOneImportant (2008-05-29 19:00:05)

Offline

#10 2009-07-07 23:39:18

Haakon
Member
From: Bergen, Norway
Registered: 2004-05-09
Posts: 109

Re: please help with WPA (I know I'm close)

I am getting the timeouts from wpa_supplicant too. No luck at all with WPA/WPA2. Did you find a solution, NoOneImportant?


Jabber: haakon@jabber.org

Offline

#11 2009-07-08 01:48:28

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: please help with WPA (I know I'm close)

pacman -S testing/netcfg

Also, in future, please try giving the *exact* output of netcfg, even if it is just one line. One day I'll "improve" netcfg so that it spits out 20 lines instead of one just so that people post it's output tongue

The rt2860 had/has an issue where if a WPA network offers two types of encryption it can't  connect. For example if a network allowed both TKIP and CCMP/AES. If you can, try setting your AP to allow one specifically. Maybe the rt2870 has the same issue.

Last edited by iphitus (2009-07-08 01:49:03)

Offline

Board footer

Powered by FluxBB