LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-03-2012, 08:13 AM   #1
ursusca
Member
 
Registered: Sep 2008
Location: Toronto, ON, Canada
Distribution: Gentoo, RHEL (Fedora, CentOS, OEL), Ubuntu, FreeBSD, Solaris 10
Posts: 170

Rep: Reputation: 34
Ralink rt5572 USB (TP-LINK TL-WDN3200)


Hello Everyone,

I am trying to use the TP-LINK TL-WDN3200 (Ralink rt5572) usb adapter. I've compiled and installed the drivers. My system tells me that I am connected to the network. I can see it even on my router, but still I have no internet access. I can’t ping internal or external IPs. I am using Gentoo 64 bit. Any suggestion?

Thanks,

Last edited by ursusca; 12-03-2012 at 08:15 AM.
 
Old 12-03-2012, 08:34 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Please post the output of the following commands
Code:
iwconfig
ifconfig
cat /etc/resolv.conf
Markus
 
Old 12-03-2012, 07:21 PM   #3
ursusca
Member
 
Registered: Sep 2008
Location: Toronto, ON, Canada
Distribution: Gentoo, RHEL (Fedora, CentOS, OEL), Ubuntu, FreeBSD, Solaris 10
Posts: 170

Original Poster
Rep: Reputation: 34
Hi Marcus,

Thanks for your response.

# iwconfig
Code:
ra0       Ralink STA  ESSID:"Beaver"  Nickname:"RT2870STA"
          Mode:Managed  Frequency=2.437 GHz  Access Point: 2C:B0:5D:43:5F:F2   
          Bit Rate=270 Mb/s   
          RTS thr:off   Fragment thr:off
          Encryption key:57C4-4AC6-E579-1F60-B0D4-F156-F7E0-61C5   Security mode:open
          Link Quality=100/100  Signal level:-38 dBm  Noise level:-38 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

eth1      no wireless extensions.

lo        no wireless extensions.
# iwconfig
Code:
ra0       Ralink STA  ESSID:"Beaver"  Nickname:"RT2870STA"
          Mode:Managed  Frequency=2.437 GHz  Access Point: 2C:B0:5D:43:5F:F2   
          Bit Rate=270 Mb/s   
          RTS thr:off   Fragment thr:off
          Encryption key:57C4-4AC6-E579-1F60-B0D4-F156-F7E0-61C5   Security mode:open
          Link Quality=100/100  Signal level:-38 dBm  Noise level:-38 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

eth1      no wireless extensions.

lo        no wireless extensions.
# ifconfig
Code:
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ra0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.11  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::92f6:52ff:fe0c:1dec  prefixlen 64  scopeid 0x20<link>
        ether 90:f6:52:0c:1d:ec  txqueuelen 1000  (Ethernet)
        RX packets 2927  bytes 381629 (372.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 54  bytes 4616 (4.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
# cat /etc/resolv.conf
Code:
nameserver 192.168.1.1
 
Old 12-03-2012, 11:42 PM   #4
smnemeth
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Rep: Reputation: Disabled
Similar Issues with same device

I've got the same USB network adapter and using Ubuntu 12.04 (64 bit). Installed the kernel module per these pages:

http://www.ctheroux.com/2012/09/rali...-ubuntu-12-04/

http://bernaerts.dyndns.org/linux/22...k-dwa160-revb2

Both of these procedures are similar, except for a few settings that can be tweaked. The first link is probably the best to follow as it is simpler and uses the make install so you don't have to muck with directly tweaking the kernel setup. The second link has some additional info on settings that could be helpful (though some are in the code and will require rebuild and reinstall).

Did you try turning off security on your router and see if you can connect and access the internet? I did and it works perfectly fine. Note I only tested the N 5 ghz band.

The problem I have is when trying to use wpa2 personal encryption, it fails to obtain an ip address.

If anyone knows how to get the security working it would be most helpful--TIA.

Here's a few of the more important logs:

Code:
scott@ubuntu-dv6:~/tplink_driver$ grep -i network /var/log/syslog | tail -200

Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 2 of 5 (Device Configure) scheduled...
Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 1 of 5 (Device Prepare) complete.
Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 2 of 5 (Device Configure) starting...
Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: prepare -> config (reason 'none') [40 50 0]
Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0/wireless): connection 'Songbird-N' has security, and secrets exist.  No new secrets needed.
Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> Config: added 'ssid' value 'Songbird-N'
Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> Config: added 'scan_ssid' value '1'
Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> Config: added 'psk' value '<omitted>'
Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 2 of 5 (Device Configure) complete.
Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> Config: set interface ap_scan to 1
Dec  3 21:52:00 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): supplicant interface state: disconnected -> scanning
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): supplicant interface state: scanning -> associating
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): supplicant interface state: associating -> associated
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): supplicant interface state: associated -> 4-way handshake
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): supplicant interface state: 4-way handshake -> completed
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'Songbird-N'.
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 3 of 5 (IP Configure Start) scheduled.
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 3 of 5 (IP Configure Start) started...
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: config -> ip-config (reason 'none') [50 70 0]
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> dhclient started with pid 10799
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Beginning IP6 addrconf.
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 3 of 5 (IP Configure Start) complete.
Dec  3 21:52:04 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): DHCPv4 state changed nbi -> preinit
Dec  3 21:52:24 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): IP6 addrconf timed out or failed.
Dec  3 21:52:24 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Dec  3 21:52:24 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Dec  3 21:52:24 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Dec  3 21:52:49 ubuntu-dv6 NetworkManager[1266]: <warn> (ra0): DHCPv4 request timed out.
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): canceled DHCP transaction, DHCP client pid 10799
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv4 Configure Timeout) started...
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <warn> Activation (ra0) failed for access point (Songbird-N)
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <info> Marking connection 'Songbird-N' invalid.
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <warn> Activation (ra0) failed.
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv4 Configure Timeout) complete.
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): deactivating device (reason 'none') [0]
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <warn> (ra0): failed to change interface MAC address
Dec  3 21:52:50 ubuntu-dv6 NetworkManager[1266]: <warn> (ra0): failed to reset MAC address to 00:00:00:00:00:00
Dec  3 21:52:51 ubuntu-dv6 NetworkManager[1266]: <info> Policy set 'Songbird' (wlan1) as default for IPv4 routing and DNS.
Dec  3 21:52:51 ubuntu-dv6 NetworkManager[1266]: <info> Policy set 'Songbird' (wlan1) as default for IPv4 routing and DNS.
Dec  3 21:52:51 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): supplicant interface state: completed -> disconnected
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> Auto-activating connection 'Songbird-N'.
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) starting connection 'Songbird-N'
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 1 of 5 (Device Prepare) scheduled...
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 1 of 5 (Device Prepare) started...
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 2 of 5 (Device Configure) scheduled...
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 1 of 5 (Device Prepare) complete.
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 2 of 5 (Device Configure) starting...
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: prepare -> config (reason 'none') [40 50 0]
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0/wireless): access point 'Songbird-N' has security, but secrets are required.
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: config -> need-auth (reason 'none') [50 60 0]
Dec  3 21:57:50 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 2 of 5 (Device Configure) complete.
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 1 of 5 (Device Prepare) scheduled...
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 1 of 5 (Device Prepare) started...
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 2 of 5 (Device Configure) scheduled...
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 1 of 5 (Device Prepare) complete.
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 2 of 5 (Device Configure) starting...
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: prepare -> config (reason 'none') [40 50 0]
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0/wireless): connection 'Songbird-N' has security, and secrets exist.  No new secrets needed.
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Config: added 'ssid' value 'Songbird-N'
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Config: added 'scan_ssid' value '1'
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Config: added 'psk' value '<omitted>'
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 2 of 5 (Device Configure) complete.
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> Config: set interface ap_scan to 1
Dec  3 21:57:51 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): supplicant interface state: disconnected -> scanning
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): supplicant interface state: scanning -> associating
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): supplicant interface state: associating -> associated
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): supplicant interface state: associated -> 4-way handshake
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): supplicant interface state: 4-way handshake -> completed
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'Songbird-N'.
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 3 of 5 (IP Configure Start) scheduled.
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 3 of 5 (IP Configure Start) started...
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: config -> ip-config (reason 'none') [50 70 0]
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> dhclient started with pid 10814
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Beginning IP6 addrconf.
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 3 of 5 (IP Configure Start) complete.
Dec  3 21:57:55 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): DHCPv4 state changed nbi -> preinit
Dec  3 21:58:15 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): IP6 addrconf timed out or failed.
Dec  3 21:58:15 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Dec  3 21:58:15 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Dec  3 21:58:15 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Dec  3 21:58:40 ubuntu-dv6 NetworkManager[1266]: <warn> (ra0): DHCPv4 request timed out.
Dec  3 21:58:41 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): canceled DHCP transaction, DHCP client pid 10814
Dec  3 21:58:41 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Dec  3 21:58:41 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv4 Configure Timeout) started...
Dec  3 21:58:41 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Dec  3 21:58:41 ubuntu-dv6 NetworkManager[1266]: <warn> Activation (ra0) failed for access point (Songbird-N)
Dec  3 21:58:41 ubuntu-dv6 NetworkManager[1266]: <warn> Activation (ra0) failed.
Dec  3 21:58:41 ubuntu-dv6 NetworkManager[1266]: <info> Activation (ra0) Stage 4 of 5 (IPv4 Configure Timeout) complete.
Dec  3 21:58:41 ubuntu-dv6 NetworkManager[1266]: <info> (ra0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Code:
scott@ubuntu-dv6:~$ iwconfig
lo        no wireless extensions.

wlan1     IEEE 802.11bgn  ESSID:"Songbird"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 58:6D:8F:38:D3:AC   
          Bit Rate=58.5 Mb/s   Tx-Power=15 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=41/70  Signal level=-69 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:1426  Invalid misc:52   Missed beacon:0

eth1      no wireless extensions.

ra0       Ralink STA  ESSID:"Songbird-N"  Nickname:"RT2870STA"
          Mode:Managed  Frequency=5.745 GHz  Access Point: 58:6D:8F:38:D3:AD   
          Bit Rate=81 Mb/s   
          RTS thr:off   Fragment thr:off
          Link Quality=91/100  Signal level:-73 dBm  Noise level:-90 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

scott@ubuntu-dv6:~$ more /etc/resolv.conf 
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
Code:
And from dmesg:

[11964.377359] <==== rt28xx_init, Status=0
[11964.380721] 0x1300 = 00064300
[11964.383746] /home/scott/tplink_driver/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_asic.c:2630 assert KeyIdx < 4failed
[11964.395849] /home/scott/tplink_driver/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_asic.c:2630 assert KeyIdx < 4failed
[11964.397217] /home/scott/tplink_driver/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_asic.c:2630 assert KeyIdx < 4failed
[11969.834667] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 511
[11969.835067] ==>rt_ioctl_siwfreq::SIOCSIWFREQ(Channel=149)
[11970.722722] Rcv Wcid(1) AddBAReq
[11970.722731] Start Seq = 00000000
[11970.722738] RTMP_TimerListAdd: add timer obj ffffc9002402f500!
[11970.734959] !!! (0) Can't allocate reordering mpdu blk
[11970.763098] RTMP_TimerListAdd: add timer obj ffffc9002402ace0!
[11971.993855] /home/scott/tplink_driver/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_asic.c:2630 assert KeyIdx < 4failed
[11971.995999] /home/scott/tplink_driver/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_asic.c:2630 assert KeyIdx < 4failed
[11972.284861] ---> RTMPFreeTxRxRingMemory
[11972.284919] <--- RTMPFreeTxRxRingMemory
[11972.292081] RtmpAsicLoadFirmware: ver 21/21, sum cdf7/cdf7, mac cdf72100
[11972.292488] NICLoadFirmware: firmware loaded already
[11972.296156] <-- RTMPAllocTxRxRingMemory, Status=0
[11972.296836] RTMP_TimerListAdd: add timer obj ffffc90023fef078!
[11972.296844] RTMP_TimerListAdd: add timer obj ffffc90023fef0f0!
[11972.296849] RTMP_TimerListAdd: add timer obj ffffc90023fef168!
[11972.296854] RTMP_TimerListAdd: add timer obj ffffc90023fef000!
[11972.296860] RTMP_TimerListAdd: add timer obj ffffc90023feee98!
[11972.296864] RTMP_TimerListAdd: add timer obj ffffc90023feef10!
[11972.296869] RTMP_TimerListAdd: add timer obj ffffc90023fb8b80!
[11972.296873] RTMP_TimerListAdd: add timer obj ffffc90023fa79f0!
[11972.296877] RTMP_TimerListAdd: add timer obj ffffc90023fa7a70!
[11972.296882] RTMP_TimerListAdd: add timer obj ffffc90023fb8d10!
[11972.296888] RTMP_TimerListAdd: add timer obj ffffc90023fb8a90!
[11972.296894] RTMP_TimerListAdd: add timer obj ffffc90023fb8c90!
[11972.300049] -->RTUSBVenderReset
[11972.300297] <--RTUSBVenderReset
and


Code:
scott@ubuntu-dv6:~$ ifconfig
eth1      Link encap:Ethernet  HWaddr 2c:41:38:60:b3:46  
          UP 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)
          Interrupt:50 

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:15452 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15452 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1405822 (1.4 MB)  TX bytes:1405822 (1.4 MB)

ra0       Link encap:Ethernet  HWaddr 90:f6:52:e5:cf:ed  
          inet6 addr: fe80::92f6:52ff:fee5:cfed/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2080 (2.0 KB)  TX bytes:2392 (2.3 KB)

wlan1     Link encap:Ethernet  HWaddr ac:72:89:ec:c2:6e  
          inet addr:172.168.1.11  Bcast:172.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ae72:89ff:feec:c26e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:98451 errors:0 dropped:0 overruns:0 frame:0
          TX packets:78286 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:52564799 (52.5 MB)  TX bytes:17202206 (17.2 MB)
 
1 members found this post helpful.
Old 12-04-2012, 12:19 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
ursusca, all the IP settings are ok, I suppose you use DHCP.

Do you have a firewall installed? Does your router really answer to imcp-requests (ping), what I mean is, does it work with other computers or other distributions on the same computer?

Could you please post the output of
Code:
iptables -L
Markus
 
Old 12-04-2012, 08:39 AM   #6
ursusca
Member
 
Registered: Sep 2008
Location: Toronto, ON, Canada
Distribution: Gentoo, RHEL (Fedora, CentOS, OEL), Ubuntu, FreeBSD, Solaris 10
Posts: 170

Original Poster
Rep: Reputation: 34
Hello markush and smnemeth,

I don't use a firewall on my box and I have a dual-boot with Win. The device works from windows.

I've installed the kernel module per provided pages. The difference is that I've downloaded newer version of the driver. The ralink developers already included some steps into config files.
Quote:
The problem I have is when trying to use wpa2 personal encryption, it fails to obtain an ip address.
I have the same problem when i use the ralink driver:
Code:
wpa_supplicant_wlan0="-Dralink"
And when I use the wext driver, it doesn't fail to obtain an ip but I have no network access.
Code:
wpa_supplicant_wlan0="-Dwext"
I haven't tried to turn off security on my router but I'll try it today and post my configuration files.

Thank you, I appreciate you help.
 
Old 12-04-2012, 08:45 AM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Well, wpa_supplicant is very useful due to it's verbose errormessages.

You should execute (if the config is in /etc/wpa_supplicant.conf)
Code:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
and (later)
Code:
wpa_supplicant -Dralink -iwlan0 -c/etc/wpa_supplicant.conf
and look at the errormessages. You should also while wpa_supplicant is trying to authenticate, having another terminal open and frequently check with "iwconfig" what's happening.

Markus
 
1 members found this post helpful.
Old 12-04-2012, 06:23 PM   #8
ursusca
Member
 
Registered: Sep 2008
Location: Toronto, ON, Canada
Distribution: Gentoo, RHEL (Fedora, CentOS, OEL), Ubuntu, FreeBSD, Solaris 10
Posts: 170

Original Poster
Rep: Reputation: 34
I've tried to disable security on my router and it was working without it but I'd like to use security. I have a wpa2 personal with AES encryption wireless network.
This is my /etc/conf.d/net file:
Code:
..........
# WiFi
modules="wpa_supplicant"
wpa_supplicant_ra0="-Dwext -d -f /var/log/wpa_supplicant.log"
config_ra0="192.168.1.11 netmask 255.255.255.0 brd 192.168.1.255"
routes_ra0="default via 192.168.1.1"
The /etc/wpa_supplicant/wpa_supplicant.conf is:
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=1
fast_reauth=1
eapol_version=1
#update_config=1

network={
        ssid="Beaver"
        psk="<password-key>"
        scan_ssid=1
        proto=WPA2
        key_mgmt=WPA-PSK
        group=CCMP TKIP
        pairwise=CCMP TKIP
        priority=5
}
#network={
#        ssid="Beaver"
#        key_mgmt=NONE
#        priority=5
#}
And the log file is:
Code:
Initializing interface 'ra0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge '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='wheel'
ap_scan=1
fast_reauth=1
eapol_version=1
Priority group 5
   id=0 ssid='Beaver'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=14 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
netlink: Operstate: linkmode=1, operstate=5
Own MAC address: 90:f6:52:0c:1d:ec
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
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized                                                                                                                                                                                                                                    
ctrl_interface_group=10 (from group name 'wheel')                                                                                                                                                                                                                              
Added interface ra0                                                                                                                                                                                                                                                            
Daemonize..                                                                                                                                                                                                                                                                    
CTRL_IFACE - ra0 - wait for monitor to attach                                                                                                                                                                                                                                  
CTRL_IFACE monitor attached - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00                                                                                                                                                               
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])                                                                                                                                                                                                           
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added                                                                                                                                                                                                                                
Wireless event: cmd=0x8b06 len=12                                                                                                                                                                                                                                              
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])                                                                                                                                                                                                                    
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added                                                                                                                                                                                                                                
State: DISCONNECTED -> SCANNING                                                                                                                                                                                                                                                
Scan SSID - hexdump_ascii(len=6):                                                                                                                                                                                                                                              
     42 65 61 76 65 72                                 Beaver                                                                                                                                                                                                                  
Starting AP scan for specific SSID(s)                                                                                                                                                                                                                                          
Scan requested (ret=0) - scan timeout 5 seconds                                                                                                                                                                                                                                
EAPOL: disable timer tick                                                                                                                                                                                                                                                      
EAPOL: Supplicant port status: Unauthorized                                                                                                                                                                                                                                    
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])                                                                                                                                                                                                                    
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added                                                                                                                                                                                                                                
Wireless event: cmd=0x8b19 len=16                                                                                                                                                                                                                                              
Received 2165 bytes of scan results (11 BSSes)                                                                                                                                                                                                                                 
BSS: Start scan result update 1                                                                                                                                                                                                                                                
BSS: Add new id 0 BSSID 2c:b0:5d:43:5f:f2 SSID 'Beaver'                                                                                                                                                                                                                        
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00                                                                                                                                                                   
BSS: Add new id 1 BSSID 00:26:f3:1c:c7:19 SSID 'HIBERNIA1'
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
BSS: Add new id 2 BSSID 00:26:f3:1c:c7:1a SSID ''
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
BSS: Add new id 3 BSSID 38:60:77:3a:62:2a SSID 'Rogers96661'
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
BSS: Add new id 4 BSSID 78:cd:8e:c1:9c:ea SSID ''
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
BSS: Add new id 5 BSSID 78:cd:8e:c1:9c:e9 SSID 'GNewland'
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
BSS: Add new id 6 BSSID c0:83:0a:0f:08:51 SSID 'omarbelarbi'
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
BSS: Add new id 7 BSSID 00:26:50:ff:64:b1 SSID 'Atilla2012'
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
BSS: Add new id 8 BSSID 20:cf:30:b7:ad:3e SSID 'MyNetwork'
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
BSS: Add new id 9 BSSID c4:3d:c7:ae:c9:12 SSID 'Showgirl2'
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
BSS: Add new id 10 BSSID 00:13:f7:36:e0:e8 SSID 'Rebael'
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
New scan results available
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
Selecting BSS from priority group 5
Try to find WPA-enabled AP
0: 2c:b0:5d:43:5f:f2 ssid='Beaver' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   selected based on RSN IE
   selected WPA AP 2c:b0:5d:43:5f:f2 ssid='Beaver'
Trying to associate with 2c:b0:5d:43:5f:f2 (SSID='Beaver' freq=2437 MHz)
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
RSN: using IEEE 802.11i/D9.0
WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
WPA: clearing AP WPA IE
WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: using GTK CCMP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_psk
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP fail=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portControl=Auto
EAPOL: Supplicant port status: Unauthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
Wireless event: cmd=0x8b04 len=16
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
Wireless event: cmd=0x8b1a len=22
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
Wireless event: cmd=0x8c07 len=56
AssocReq IE wireless event - hexdump(len=40): 00 06 42 65 61 76 65 72 01 08 82 84 8b 96 24 30 48 6c 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: 2c:b0:5d:43:5f:f2
Association info event
req_ies - hexdump(len=40): 00 06 42 65 61 76 65 72 01 08 82 84 8b 96 24 30 48 6c 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: set own WPA/RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=2c:b0:5d:43:5f:f2
No keys have been configured - skip key clearing
Associated with 2c:b0:5d:43:5f:f2
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
WPA: Association event - clear replay counter
WPA: Clear old PTK
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: enable timer tick
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
RX EAPOL from 2c:b0:5d:43:5f:f2
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=2 type=3 length=117
  EAPOL-Key type=2
  key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=16 key_data_length=22
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_nonce - hexdump(len=32): a5 78 d4 b9 47 0c 5b bc a5 0a 2d 05 0a b3 93 ef aa 37 58 d2 d6 52 66 89 4d c5 99 5b 5c 65 47 cf
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 2c:b0:5d:43:5f:f2 (ver=2)
RSN: msg 1/4 key data - hexdump(len=22): dd 14 00 0f ac 04 fa 6c 9c 36 6d 0a 10 61 79 dc 78 b9 4c 9a 01 af
WPA: PMKID in EAPOL-Key - hexdump(len=22): dd 14 00 0f ac 04 fa 6c 9c 36 6d 0a 10 61 79 dc 78 b9 4c 9a 01 af
RSN: PMKID from Authenticator - hexdump(len=16): fa 6c 9c 36 6d 0a 10 61 79 dc 78 b9 4c 9a 01 af
RSN: no matching PMKID found
WPA: Renewed SNonce - hexdump(len=32): 84 50 bd d3 15 b2 d1 c5 2c 43 a0 9a c8 9c 53 dc 47 b7 62 7a 33 6b a7 bb 53 41 73 e3 ea 71 0a 97
WPA: PTK derivation - A1=90:f6:52:0c:1d:ec A2=2c:b0:5d:43:5f:f2
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=48): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 2c:b0:5d:43:5f:f2
IEEE 802.1X RX: version=2 type=3 length=151
  EAPOL-Key type=2
  key_info 0x13ca (ver=2 keyidx=0 rsvd=0 Pairwise Install Ack MIC Secure Encr)
  key_length=16 key_data_length=56
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
  key_nonce - hexdump(len=32): a5 78 d4 b9 47 0c 5b bc a5 0a 2d 05 0a b3 93 ef aa 37 58 d2 d6 52 66 89 4d c5 99 5b 5c 65 47 cf
  key_iv - hexdump(len=16): aa 37 58 d2 d6 52 66 89 4d c5 99 5b 5c 65 47 d1
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): d0 19 4e 14 bb 07 42 f8 05 54 88 76 6b 21 a5 7f
RSN: encrypted key data - hexdump(len=56): f2 36 e7 77 fa 3f 6a 62 e3 75 4e d0 4c fa 0f 77 7f 9a 16 7d 68 06 79 51 79 8d 97 29 bc 55 5f f7 82 95 cf ee ae b7 2f 85 13 95 08 bb 66 1b a4 32 2d ad f3 11 d7 bb f1 88
WPA: decrypted EAPOL-Key key data - hexdump(len=48): [REMOVED]
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 2c:b0:5d:43:5f:f2 (ver=2)
WPA: IE KeyData - hexdump(len=48): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 dd 16 00 0f ac 01 01 00 42 a6 ae 2f b0 91 df 2d d8 a0 66 a1 a7 b9 3a c7 dd 00
WPA: RSN IE in EAPOL-Key - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: GTK in EAPOL-Key - hexdump(len=24): [REMOVED]
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
wpa_driver_wext_set_key: alg=3 key_idx=0 set_tx=1 seq_len=6 key_len=16
EAPOL: External notification - portValid=1
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RSN: received GTK in pairwise handshake - hexdump(len=18): [REMOVED]
WPA: Group Key - hexdump(len=16): [REMOVED]
WPA: Installing GTK to the driver (keyidx=1 tx=0 len=16).
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=3 key_idx=1 set_tx=0 seq_len=6 key_len=16
WPA: Key negotiation completed with 2c:b0:5d:43:5f:f2 [PTK=CCMP GTK=CCMP]
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
Cancelling authentication timeout
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 2c:b0:5d:43:5f:f2 completed (auth) [id=0 id_str=]
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 37 34 35 37 2d 31 00
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
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: Supplicant port status: Authorized
EAPOL: SUPP_BE entering state IDLE
EAPOL authentication completed successfully
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
EAPOL: startWhen --> 0
EAPOL: disable timer tick
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING            
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING            
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING            
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING            
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING            
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING            
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING            
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING            
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING
Is anybody can help to get the security working?

Thanks,

Last edited by ursusca; 12-04-2012 at 06:40 PM. Reason: added the log information
 
Old 12-05-2012, 01:33 AM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
wpa_supplicant doesn't need that much configuration. You can leave some lines away:
Code:
ctrl_interface=/var/run/wpa_supplicant group=wheel
#ap_scan=1
#fast_reauth=1
#eapol_version=1
#update_config=1

network={
        ssid="Beaver"
        psk="<password-key>"
        #scan_ssid=1
        proto=WPA RSN
        key_mgmt=WPA-PSK
        #group=CCMP TKIP
        pairwise=CCMP TKIP
        #priority=5
}
#network={
#        ssid="Beaver"
#        key_mgmt=NONE
#        priority=5
#}
Try this one.

Markus
 
1 members found this post helpful.
Old 12-05-2012, 10:56 PM   #10
ursusca
Member
 
Registered: Sep 2008
Location: Toronto, ON, Canada
Distribution: Gentoo, RHEL (Fedora, CentOS, OEL), Ubuntu, FreeBSD, Solaris 10
Posts: 170

Original Poster
Rep: Reputation: 34
Thank you Markus,

I've tried different parameters but nothing helped. I gess it's a kernel/driver/wpa_supplicant issue. I've tried to upgrade wpa_supplicant to 1.1 but it didn't help. I'll try to play with kernels.
 
Old 12-06-2012, 12:46 AM   #11
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
I've just read again your first post in this thread. I think you should open another terminal and use tcpdump in order to check what's really happening.

Did different configurations in the wpa_supplicant.conf lead to any errormessages?

Markus
 
Old 12-06-2012, 04:47 AM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,436

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
try these commands as root or using sudo
Quote:
wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -B
dhclient wlan0
To get my usb working all I did was download the realtek firmware open it & copy the firmware to /lib/firmware.
 
Old 12-06-2012, 07:38 AM   #13
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
EDDY1, it seems that the interface in general is working. The IP-configuration looks valid.
Therefore I don't think that the firmware is missing

Markus
 
1 members found this post helpful.
Old 12-09-2012, 03:28 PM   #14
ursusca
Member
 
Registered: Sep 2008
Location: Toronto, ON, Canada
Distribution: Gentoo, RHEL (Fedora, CentOS, OEL), Ubuntu, FreeBSD, Solaris 10
Posts: 170

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by markush View Post
I've just read again your first post in this thread. I think you should open another terminal and use tcpdump in order to check what's really happening.

Did different configurations in the wpa_supplicant.conf lead to any errormessages?

Markus
Only the "-Dwext" option seems working. I'm getting "unable authenticate" message with other options.
 
Old 12-09-2012, 03:34 PM   #15
ursusca
Member
 
Registered: Sep 2008
Location: Toronto, ON, Canada
Distribution: Gentoo, RHEL (Fedora, CentOS, OEL), Ubuntu, FreeBSD, Solaris 10
Posts: 170

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by markush View Post
EDDY1, it seems that the interface in general is working. The IP-configuration looks valid.
Therefore I don't think that the firmware is missing

Markus
I don't think so too. I've tried to copy the rt2870.bin file after compilation to the /lib/firmware directory and it didn't help.
 
  


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
Ralink RT3572/rt5572 driver for ucLinux harirhk Linux - Embedded & Single-board computer 2 12-11-2011 10:12 PM
USB Wifi adapter D-Link DWA-125 (Ralink 2870) friendly distro? janimalia Linux - Wireless Networking 3 01-25-2010 02:30 PM
D-Link System DWA-140 802.11n Adapter [ralink rt2870] - Not recognized dlinux Slackware 11 12-27-2009 11:19 PM
D-Link DWA-140 802.11n USB (with Ralink RT2870 chispet) driver probs andywest Linux - Hardware 2 06-12-2008 12:40 PM
D-Link DWL G510 (Ralink Chipset) doesn't work marco18 Linux - Hardware 4 01-17-2008 06:03 AM


All times are GMT -5. The time now is 08:43 AM.

Main Menu
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