LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-24-2010, 05:19 PM   #1
flyingbird
LQ Newbie
 
Registered: Jul 2010
Posts: 6

Rep: Reputation: 0
Activate Ralink Wireless PCIe adapter in CentOS


Hello,

I am trying to bring up a RT2860STA wireless adapter in x86-64bits CentOS (kernel version - 2.6.18), so far without success.

I compiled the driver with `HAS_WPA_SUPPLICANT=y` and `HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y` in config.mk, the rt2860sta.ko module can be loaded to the kernel successfully.

Then I tried to run wpa_supplicant to connect with my wireless AP, the `wpa_supplicant.cfg` says:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root

network={
ssid="flyingbird"
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
psk="my_secret_psk"
}

After running 'wpa_supplicant -Dwext -ira0 -c wpa_supplicant.cfg -d', I got the following output:

[root@ib_manager ~]# wpa_supplicant -Dwext -ira0 -c /etc/wpa_supplicant/wpa_supplicant.conf -d
Initializing interface 'ra0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0 (from group name 'root')
Line 10: removed CCMP from group cipher list since it was not allowed for pairwise cipher
Priority group 0
id=0 ssid='flyingbird'
Initializing interface (2) 'ra0'
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
ioctl[SIOCSIWMODE]: Network is down
Could not configure driver to use managed mode
SIOCGIWRANGE: WE(compiled)=20 WE(source)=14 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
Own MAC address: e0:cb:4e:86:28:ea
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 ra0
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 514 bytes of scan results (3 BSSes)
Scan results: 3
Selecting BSS from priority group 0
0: 00:1f:b3:30:3d:31 ssid='flyingbird' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:1f:b3:30:3d:31 (SSID='flyingbird' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: set AP WPA IE - 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
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_associate
Setting authentication timeout: 15 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b06 len=12
Wireless event: cmd=0x8b1a len=27
Wireless event: cmd=0x8c07 len=62
AssocReq IE wireless event - hexdump(len=46): 00 0a 66 6c 79 69 6e 67 62 69 72 64 01 08 82 84 8b 96 0c 12 18 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
Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: 00:1f:b3:30:3d:31
Association info event
req_ies - hexdump(len=46): 00 0a 66 6c 79 69 6e 67 62 69 72 64 01 08 82 84 8b 96 0c 12 18 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
WPA: set own WPA/RSN IE - 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
State: ASSOCIATING -> ASSOCIATED
Associated to a new BSS: BSSID=00:1f:b3:30:3d:31
No keys have been configured - skip key clearing
Associated with 00:1f:b3:30:3d:31
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
RX EAPOL from 00:1f:b3:30:3d:31
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
EAPOL-Key type=254
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:1f:b3:30:3d:31 (ver=1)
WPA: WPA IE for msg 2/4 - 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
WPA: Renewed SNonce - hexdump(len=32): 7d a8 d4 95 22 61 ec f7 e0 5e ee 79 93 75 52 49 8a 94 b0 7e 24 9f e2 4b d0 5b 7c 14 34 4b cb 65
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 00:1f:b3:30:3d:31
IEEE 802.1X RX: version=1 type=3 length=119
EAPOL-Key type=254
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 00:1f:b3:30:3d:31 (ver=1)
WPA: IE KeyData - 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
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=0 set_tx=1 seq_len=6 key_len=32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RX EAPOL from 00:1f:b3:30:3d:31
IEEE 802.1X RX: version=1 type=3 length=127
EAPOL-Key type=254
State: GROUP_HANDSHAKE -> GROUP_HANDSHAKE
WPA: RX message 1 of Group Key Handshake from 00:1f:b3:30:3d:31 (ver=1)
WPA: Group Key - hexdump(len=32): [REMOVED]
WPA: Installing GTK to the driver (keyidx=1 tx=0).
WPA: RSC - hexdump(len=6): 41 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=1 set_tx=0 seq_len=6 key_len=32
WPA: Sending EAPOL-Key 2/2
WPA: Key negotiation completed with 00:1f:b3:30:3d:31 [PTK=TKIP GTK=TKIP]
Cancelling authentication timeout
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:1f:b3:30:3d:31 completed (auth)
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: SUPP_BE entering state IDLE
EAPOL: startWhen --> 0

It looks like the connection with AP has been established successfully. But when I tried 'ifup ra0' to get a IP address, it always comes out as: "Determining IP information for ra0... failed; no link present. check cable?" I can not get a IP address on it. Do I miss some steps here?

Thanks for your support!

Last edited by flyingbird; 07-24-2010 at 05:21 PM.
 
  


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
New usb ralink 3072 adapter will not start in ubuntu 8.10 Oldrabbit Linux - Newbie 8 03-02-2010 07:05 PM
RaLink RT2860 Wireless Card Problems in CentOS 5.4... fedoralinuxjunkie Red Hat 6 11-28-2009 08:04 PM
[SOLVED] SIS 771/671 PCIE VGA display adapter problem in mandriva 2009 spring tuxindo Mandriva 2 08-26-2009 10:12 PM
XScale PCIe RS-232 board - unable to use? - CentOS 5.3 PaulGraham Linux - Hardware 1 06-20-2009 03:47 PM
I can't activate (i'mean activate) my wireless card Mardrus Linux - Newbie 5 05-04-2008 07:35 AM


All times are GMT -5. The time now is 02:36 PM.

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