LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-19-2009, 10:33 AM   #1
ipvirg
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Rep: Reputation: 0
RT2500 wifi card could not connect to wireless router using WPA personal


RT2500 wifi card could not connect to wireless router using WPA personal.
OS - RHEL4; Dell Inspiron C600; interface detected ra0
 
Old 09-19-2009, 11:06 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Do you have wpasupplicant installed? (Most network managers use wpa_cli to negotiate the connection.)
Which method (application, scripts, etc.) are you using to (attempt to) connect? Have you configured the app correctly for your AP?
Have you seen any error messages? (Look in dmesg | tail and cat /var/log/wpa_supplicant.log.) What, if any, are those errors?

<edit>
Note: I don't use RHEL, so the above is a "generic" how-to-resolve-a-problem list of suggestions.
</edit>

Last edited by PTrenholme; 09-19-2009 at 11:10 AM.
 
Old 09-20-2009, 11:15 AM   #3
ipvirg
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
i do have wpasupplicant installed. wpa_gui is not showing the ra0 interface. there is no /var/log/wpa_supplicant.log file created.
 
Old 09-20-2009, 12:20 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Quote:
Originally Posted by ipvirg View Post
i do have wpasupplicant installed. wpa_gui is not showing the ra0 interface. there is no /var/log/wpa_supplicant.log file created.
And . . . (I.e., there were three questions I asked.)

Your (attempted) access method is the most crucial. Describe (in extreme, step-by-step, detail) exactly what you do to attempt to get a connect. Be sure to give the name and version number of any application used for any step. (Note: If you're running from a GUI, look at the details of the menu entry (using your menu editor option) to find the application name. Almost all aplication versions can be found by entering the application name followed by --version in a terminal window.)

Can you show the contents of /etc/sysconfig/wpa_supplicant? Usually the default settings suffice, but you may have something in there that's interfering. Here's my (default) setting:
Code:
$ cat /etc/sysconfig/wpa_supplicant
# Use the flag "-i" before each of your interfaces, like so:
#  INTERFACES="-ieth1 -iwlan0"
INTERFACES=""

# Use the flag "-D" before each driver, like so:
#  DRIVERS="-Dwext"
DRIVERS=""

# Other arguments
#   -u   Enable the D-Bus interface (required for use with NetworkManager)
#   -f   Log to /var/log/wpa_supplicant.log
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log"
You might also want to see if you have a /etc/wpa_supplicant.conf or /etc/wpa_supplicant/wpa_supplicant.conf file, and, if so, that the conf file contents are correct. (In most cases, you don't need a wpa_supplicant.conf file since the app.s will use wpa_cli to negotiate the connection.)

If you're device is running, iwconfig and ifconfig should look somewhat like this:
Code:
$ iwconfig ra0
ra0       Ralink STA  ESSID:"TSS3"  Nickname:"RT2860STA"
          Mode:Managed  Frequency=2.452 GHz  Access Point: 00:15:05:44:E9:6D
          Bit Rate=48 Mb/s
          RTS thr:off   Fragment thr:off
          Link Quality=94/100  Signal level:-70 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

$ ifconfig ra0
ra0       Link encap:Ethernet  HWaddr 00:08:54:8A:1A:41
          inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::208:54ff:fe8a:1a41/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:259289 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17712 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:26159416 (24.9 MiB)  TX bytes:1641676 (1.5 MiB)
          Interrupt:17
If you're using wicd as your connection manager, make sure that the values in /etc/wicd/wireless_settings.conf are correct. (Note that your WPA key is displayed, unencrypted, in that file. That's why you need"root" permission to look at it.)
 
Old 09-20-2009, 11:57 PM   #5
ipvirg
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
[root@localhost ~]# wpa_supplicant -v
wpa_supplicant v0.6.9
Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi> and contributors
[root@localhost ~]# cat /etc/sysconfig/wpa_supplicant
cat: /etc/sysconfig/wpa_supplicant: No such file or directory
[root@localhost ~]# cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
#ap_scan=2

network={
ssid="cebu"
scan_ssid=1
proto=WPA
pairwise=TKIP
group=TKIP
psk=d4e680b477ce3b71a6ea2dc0bc45b578971b0815888cf7e3cf9bb5eb4417aa26
}
[root@localhost ~]# wpa_supplicant -i ra0 -c/etc/wpa_supplicant.conf
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS

[root@localhost ~]# iwconfig ra0
ra0 RT2500 Wireless ESSID:"cebu"
Mode:Managed Frequency=2.437GHz Bit Rate:11Mb/s
RTS thrff Fragment thrff
Encryption keyff
Link Quality=0/100 Signal level=-120 dBm Noise level:-192 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

[root@localhost ~]# ifconfig ra0
ra0 Link encap:Ethernet HWaddr 00:0E:2E:5E:87:43
inet6 addr: fe80::20e:2eff:fe5e:8743/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:106904 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:4703748 (4.4 MiB)
Interrupt:11 Base address:0x8000

[root@localhost ~]#
 
Old 09-21-2009, 12:43 AM   #6
ipvirg
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
[root@localhost ~]# wpa_supplicant -dd -c/etc/wpa_supplicant.conf -ira0
Initializing interface 'ra0' conf '/etc/wpa_supplicant.conf' driver 'default' 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'
Line: 4 - start of a new network block
ssid - hexdump_ascii(len=4):
63 65 62 75 cebu
proto: 0x3
key_mgmt: 0x2
pairwise: 0x8
group: 0x8
PSK - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='cebu'
Initializing interface (2) 'ra0'
Interface ra0 set UP - waiting a second for the driver to complete initialization
SIOCGIWRANGE: too old (short) data - assuming WPA is not supported
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:0e:2e:5e:87:43
wpa_driver_wext_set_wpa
Driver does not support WPA.
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
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
Added interface ra0
RTM_NEWLINK: operstate=0 ifi_flags=0x1043 ([UP][RUNNING])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1043 ([UP][RUNNING])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1043 ([UP][RUNNING])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 85 bytes of scan results (1 BSSes)
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:11:24:0b:ee:ad ssid='APPLE NETWORK' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:11:24:0b:ee:ad ssid='APPLE NETWORK' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
EAPOL: disable timer tick
Scan timeout - try to get results
Received 161 bytes of scan results (2 BSSes)
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1e:e5:2e:f5:3f ssid='cebu' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
1: 00:11:24:0b:ee:ad ssid='APPLE NETWORK' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1e:e5:2e:f5:3f ssid='cebu' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
1: 00:11:24:0b:ee:ad ssid='APPLE NETWORK' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface ra0
State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
Failed to disable WPA in the driver.
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6
 
Old 09-21-2009, 12:53 AM   #7
ipvirg
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
looks like my driver installed on the RT2500 card does not support WPA.
 
Old 09-21-2009, 10:45 AM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Perhaps. But you haven't yet mentioned which driver you're using.

Also, at the bottom of this page there's a block with the title "Posting Rules." Inside that block you should see a line that reads "BB code is ON," with the "BB code" part highlighted as a hyper-link. Please look at the target of the link, and, in future posts containing large text blocks, surround those blocks with [code] or [php] BB tags.
 
Old 09-21-2009, 10:08 PM   #9
ipvirg
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
I am using rt2500-1.1.0-b4. Any idea which driver version does support WPA?
 
Old 09-22-2009, 10:39 AM   #10
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Look at this WiKi. Note that any kernel after 2.6.24 should have included a RT2500 driver with WPA support. What kernel version are you using? (uname -r should tell you.)

If you're stuck with an older kernel, the WiKi can help you create a driver.
 
Old 09-24-2009, 10:58 PM   #11
ipvirg
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
I actually try the driver posted at the wiki but no luck.

[root@localhost downloads]# uname -a
Linux localhost.localdomain 2.6.9-34.EL #1 Fri Feb 24 16:44:51 EST 2006 i686 i686 i386 GNU/Linux
[root@localhost downloads]# cd RutilTv0.18
[root@localhost RutilTv0.18]# ls
art configure.sh include lib README rutilt_helper.1
AUTHORS COPYING INSTALL Makefile rutilt.1 set_ip.sh
[root@localhost RutilTv0.18]# ./configure.sh
Requested 'gtk+-2.0 >= 2.6.0' but version of GTK+ is 2.4.13
Please install (or upgrade to) GTK+ 2.6.0, at least.
[root@localhost RutilTv0.18]#

I also try updating gtk+ but it fails for glib dependencies.

checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.21.3 atk >= 1.13.0 pango >= 1.20 cairo >= 1.6) were not met:

Requested 'glib-2.0 >= 2.21.3' but version of GLib is 2.4.7
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with WiFi & WPA on Fedora 9 & RT2500 martin78 Linux - Wireless Networking 1 07-05-2008 06:32 PM
Can't connect wireless DLINK card with ndiswrapper and WPA+TKIP eraosso Slackware 10 12-28-2007 11:32 AM
cannot connect to Belkin WiFi Router from laptop network card crmpicco General 2 05-19-2007 05:52 PM
[ipw2200 & WPA] Need help to connect to WPA enabled router. Hyakutake Slackware 2 03-02-2007 10:58 AM
Having trouble setting up WPA support for rt2500-based card J_K9 Linux - Wireless Networking 4 08-18-2006 09:28 AM


All times are GMT -5. The time now is 09:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration