View previous topic :: View next topic |
Author |
Message |
mike0112358 n00b
Joined: 13 Mar 2007 Posts: 8 Location: various
|
Posted: Fri Mar 16, 2007 2:51 am Post subject: configuring WPA on a ralink chip |
|
|
I am trying to get my wireless card set up. It could be a problem with the driver/wpa_supplicant, but I wonder if I am not setting up my configuration files correctly (I am largely guessing and example-following on that score). I am hoping someone will point out an error in my conifg files; otherwise, I will have to blame my driver.
/etc/conf.d/net:
Code: |
iface_eth0="dhcp"
dhcpcd_eth0=""
modules=( "wpa_supplicant" )
wpa_supplicant_rausb0="-Dralink"
|
/etc/wpa_supplicant/wpa_supplicant.conf
Code: |
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="<MYESSID>"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk=<MYPSK>
priority=2
}
|
I have /etc/init.d/net.rausb0 -> /etc/init.d/net.lo, when I do "/etc/init.d/net.rausb0 start" I get
Code: |
* Starting rausb0
* Loading networking modules for rausb0
* modules: apipa arping ccwgroup macchanger macnet rename |wpa_supplicant essidnet iptunnel ifconfig system dhcpcd ip6to4
* wpa_supplicant provides wireless
* ifconfig provides interface
* dhcpcd provides dhcp
* Configuring rausb0 for MAC address 00:13:D3:83:DE:ED ... [ ok ]
* Starting wpa_supplicant on rausb0 ...
ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected [ ok ]
* Starting wpa_cli on rausb0 ... [ ok ]
* Waiting for association [ ok ]
* Backgrounding ...
|
Other postings suggest the ioctl messages are not important.... ???
If I do "iwconfig" things look good (I think?)
Code: |
lo no wireless extensions.
eth0 no wireless extensions.
rausb0 RT73 WLAN ESSID:"<MYESSID>" Nickname:""
Mode:Managed Frequency=2.412 GHz Bit Rate=54 Mb/s
RTS thr:off Fragment thr=65534 B
Encryption key:off
Link Quality=0/100 Signal level:-121 dBm Noise level:-115 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
|
But it doesn't seem to do anything useful. "netstat -rn" gives me
Code: |
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
|
Amd "dhcpcd -d rausb0" gives
Code: |
Info, MAC address = 00:13:d3:83:de:ed
Debug, broadcasting DHCP_DISCOVER
<< long pause here >>
Error, timed out waiting for a valid DHCP server response
|
Technical details, that might be relevant:
I have the rt73 driver. I got the latest from serialmonkey http://rt2x00.serialmonkey.com/wiki/index.php?title=Downloads.
This compiles fine; iwconfig sees the card, and if I start it up it finds my router. Only thing is the router is set to WPA (it's not mine, and I don't want to fiddle with it). I believe it would connect fine to a WEP or to an unencrypted acces point (will verify later).
But there's another version of the driver (older?) at http://www.ralinktech.com/ralink/Home/Support/Linux.html, more precisely, the first one in the list. I discovered this via a ubuntu-howto for my exact lapop (averatec 2370). The driver there doesn't seem to compile for me, but I assume (foolishly?) that my newer driver will be interchangeable. Of interest to me are the files that can be linked into the source code for wpa_supplicant to add support for this driver. Nice! It's done against wpa_supplicant-0.4.7, so I download that and compile (I tried using the latest 0.5.7 but loads of error messages).
One other thing. If I change /etc/conf.d/net to
Code: |
iface_eth0="dhcp"
dhcpcd_eth0=""
modules=( "iwconfig" )
key_<MYESSID>="s:<MYKEY> enc open"
preferred_aps=( "<MYESSID>" )
|
Then "/etc/init.d/net.rausb0 start" gives me
Code: |
* Starting rausb0
* Loading networking modules for rausb0
* modules: apipa arping ccwgroup macchanger macnet rename iwconfig essidnet iptunnel ifconfig system dhcpcd ip6to4
* iwconfig provides wireless
* ifconfig provides interface
* dhcpcd provides dhcp
* Configuring rausb0 for MAC address 00:13:D3:83:DE:ED ... [ ok ]
* Configuring wireless network for rausb0
* Scanning for access points
* Found "SKY15670" at 00:18:4D:01:7D:28 (managed, encrypted)
* Found "SKY15670" at 00:18:4D:01:7D:28 (managed, encrypted)
* Connecting to "SKY15670" in managed mode (WEP enabled) ... [ !! ]
* Couldn't associate with any access points on rausb0
* Failed to configure wireless for rausb0 [ !! ]
|
This is not surprising, since it is a WPA access point. I tried windoze, and it connected fine and told my it was WPA.
Are my config files OK? Meaning that the driver and/or wpa_supplicant aren't working.
Any help appreciated!
Thanks,
mike |
|
Back to top |
|
|
mike0112358 n00b
Joined: 13 Mar 2007 Posts: 8 Location: various
|
Posted: Tue Mar 20, 2007 6:18 pm Post subject: well it works in WEP unencrypted... |
|
|
Just to tag a note onto my previous post, if I use the second version of /etc/conf.d/net (ie, the wireless-tools one) I am able to connect to an uncrypted WEP access point.
I haven't been able to test on any access point I have control over, but it looks like the wpa_supplicant that complies with the driver that I obtained above doesn't work. Or perhaps th fact that I am not using the driver that ships with the modified wpa_supplicant?
Comments most welcome! It would be nice to have stronger encryption available ...
mike |
|
Back to top |
|
|
Sannin Tux's lil' helper
Joined: 09 Jan 2006 Posts: 85 Location: Greece
|
Posted: Wed Mar 21, 2007 5:56 pm Post subject: |
|
|
From wpa_supplicant --help, i can' t see any ralink driver:
Code: | drivers:
wext = Linux wireless extensions (generic)
hostap = Host AP driver (Intersil Prism2/2.5/3)
prism54 = Prism54.org driver (Intersil Prism GT/Duette/Indigo)
atmel = ATMEL AT76C5XXx (USB, PCMCIA)
ndiswrapper = Linux ndiswrapper
ipw = Intel ipw2100/2200 driver (old; use wext with Linux 2.6.13 or newer)
wired = wpa_supplicant wired Ethernet driver
|
|
|
Back to top |
|
|
mike0112358 n00b
Joined: 13 Mar 2007 Posts: 8 Location: various
|
Posted: Tue Mar 27, 2007 9:03 am Post subject: |
|
|
I'm using the ralink driver (and patch to wpa_supplicant code) from http://www.ralinktech.com/ralink/Home/Support/Linux.html . This forces me to use the older version 0.4.7, since the patches don't seem compatible with the latest version.
Anyway, wpa_supplicant -help gives me the following, so I'm pretty sure that I patched it in correctly, even if the combination of driver/patch didn't actually work
Code: |
wpa_supplicant v0.4.7
Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi> and contributors
This program is free software
[ ... ]
usage:
wpa_supplicant [-BddehLqqvwW] [-P<pid file>] [-g<global ctrl>] \
-i<ifname> -c<config file> [-C<ctrl>] [-D<driver>] [-p<driver_param>] \
[-N -i<ifname> -c<conf> [-C<ctrl>] [-D<driver>] [-p<driver_param>] ...]
drivers:
ralink = Ralink rt73 driver
hostap = Host AP driver (Intersil Prism2/2.5/3)
atmel = ATMEL AT76C5XXx (USB, PCMCIA)
wext = Linux wireless extensions (generic)
wired = wpa_supplicant wired Ethernet driver
options:
[...]
|
|
|
Back to top |
|
|
mar_rud n00b
Joined: 27 Jul 2006 Posts: 72 Location: Poland
|
Posted: Mon Apr 02, 2007 6:31 pm Post subject: |
|
|
Look here:
http://rt2x00.serialmonkey.com/phpBB2/viewtopic.php?t=3533
and links there given, or even search for wpa_supplicant in that forum.
I didn't tried it and not sure, if wpa_supplicant (even patched) can still/yet work with rt73. I just used iwpriv (check iwpriv_usage.txt from rt73 source archive) for wpa2psk, and it's working. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|