You are not logged in.

#1 2012-02-06 18:30:47

farsaver
Member
Registered: 2012-02-06
Posts: 3

Networkmanager problem with WPA

Hello guys, this is my second install of the Arch and I had issued this both of them. In previous install, problem was just disappeared, but this time it's haunting me :(
My problem is being not able to connect my WPA secured network
Firstly my card has no problem in my win7 and Linuxmint 11 installs. I've read each wikipages and looked a lot into the forums (using cable connection:) ). Unfortunately everyone has different (or no) solutions, but any of them didn't worked in my case.
While tampering things, I've discovered that NetworkManager is causing the problem. Currently, I am connecting manually, networkmanager disabled.

Here is what happens when networkmanager daemon running: (replaced my routers mac with :::MYROUTER'SMAC:: )

# wpa_supplicant -iwlan0 -c wpa
Trying to associate with :::MYROUTER'SMAC:: (SSID='super_hizli' freq=2412 MHz)
Associated with :::MYROUTER'SMAC::
WPA: Key negotiation completed with :::MYROUTER'SMAC:: [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to :::MYROUTER'SMAC:: completed (auth) [id=0 id_str=]
CTRL-EVENT-DISCONNECTED bssid=:::MYROUTER'SMAC:: reason=0
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
Trying to associate with :::MYROUTER'SMAC:: (SSID='super_hizli' freq=2412 MHz)
Associated with :::MYROUTER'SMAC::
WPA: Key negotiation completed with :::MYROUTER'SMAC:: [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to :::MYROUTER'SMAC:: completed (reauth) [id=0 id_str=]
CTRL-EVENT-DISCONNECTED bssid=:::MYROUTER'SMAC:: reason=0
Trying to associate with :::MYROUTER'SMAC:: (SSID='super_hizli' freq=2412 MHz)
Associated with :::MYROUTER'SMAC::
WPA: Key negotiation completed with :::MYROUTER'SMAC:: [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to :::MYROUTER'SMAC:: completed (reauth) [id=0 id_str=]
CTRL-EVENT-DISCONNECTED bssid=:::MYROUTER'SMAC:: reason=0
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
Trying to associate with :::MYROUTER'SMAC:: (SSID='super_hizli' freq=2412 MHz)
Associated with :::MYROUTER'SMAC::
WPA: Key negotiation completed with :::MYROUTER'SMAC:: [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to :::MYROUTER'SMAC:: completed (reauth) [id=0 id_str=]
CTRL-EVENT-DISCONNECTED bssid=:::MYROUTER'SMAC:: reason=0
Trying to associate with :::MYROUTER'SMAC:: (SSID='super_hizli' freq=2412 MHz)
Associated with :::MYROUTER'SMAC::
WPA: Key negotiation completed with :::MYROUTER'SMAC:: [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to :::MYROUTER'SMAC:: completed (reauth) [id=0 id_str=]

... continues to happen same things

wpa_supplicant suddenly losses connection (or disconnects it self). Looks like NetworkManager has some errors, I am not able to use nm-applet network-manager-applet or wicd

Where am I doing wrong. Any ideas?

Thanks,

Offline

#2 2012-02-06 22:28:14

farsaver
Member
Registered: 2012-02-06
Posts: 3

Re: Networkmanager problem with WPA

Also I've tried git version of netwotkmanager from AUR. But nm keeps disconnecting immediately after connection. Looking relevant to this historical bugs complaining about AP scanning:
https://bugzilla.redhat.com/show_bug.cgi?id=490493
https://bugzilla.gnome.org/show_bug.cgi?id=513820

Also it could be a driver issue, because lspci gives

02:00.0 Ethernet controller: Atheros Communications Inc. AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)

It may be wrong, because output from Linux Mint 11 tells I've AR5001 card. Currently activated module is ath5k

Offline

#3 2012-02-06 23:10:52

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Networkmanager problem with WPA

The name of the device doesn't really mean anything. The pci-id (lscpi -nn) is what matters and that one is for sure the same in Arch and Mint. The name depends on how old or new the database is, you can update it yourself by running update-pciids.

Offline

#4 2012-02-07 06:32:17

farsaver
Member
Registered: 2012-02-06
Posts: 3

Re: Networkmanager problem with WPA

Thanks Gusar, you were right pci ids are same. This leaves me that there is an error woth networkmanager configuration. I have tried downgrading the package and git version from AUR but all do the same. I will try to copy configuration from Mint

Edit: Here is some part of debug output from NetworkManager. wpa_supplicant constantly starts and stops by time. Some times it lives for 20-30 seconds, but every time it fails there is a nm-netlink-monitor.c:118 line before it. Is this a coincidence or it may be bug?

NetworkManager[17605]: <info> wpa_supplicant started
NetworkManager[17605]: <debug> [1328708244.572267] [nm-supplicant-interface.c:451] interface_add_done(): (wlan0): interface added to supplicant
NetworkManager[17605]: <info> (wlan0): supplicant interface state: starting -> ready
NetworkManager[17605]: <info> (wlan0): device state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
NetworkManager[17605]: <debug> [1328708244.572805] [nm-supplicant-manager.c:162] get_eap_methods_reply(): EAP-FAST is not supported
NetworkManager[17605]: <info> (wlan0): supplicant interface state: ready -> inactive
NetworkManager[17605]: <debug> [1328708246.605058] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 3 flags 0x11003
NetworkManager[17605]: <debug> [1328708246.634576] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 3 flags 0x1003
NetworkManager[17605]: <debug> [1328708246.635134] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 3 flags 0x1003
NetworkManager[17605]: <info> wpa_supplicant stopped

Last edited by farsaver (2012-02-08 14:00:43)

Offline

Board footer

Powered by FluxBB