I am unable to connect to unencrypted network with ndiswrapper or acx
driver (same card) using NetworkManager, although iwconfig+dhclient
manually works just fine.
Today I found out by accident that when I run NetworkManager as root
with --no-daemon (in root shell: killall NetworkManager; NetworkManager
--no-daemon), everything works; I repeated that many times with/without
--no-daemon to make sure that is the cause and it really seems to be the
case.

The failed case has this in the log:

Aug  4 08:50:03 [NetworkManager] <information>_wpa_supplicant(7701): 
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)_
Aug  4 08:51:03 [NetworkManager] <information>_Activation (wlan0/wireless): 
association took too long (>60s), failing activation._

Capturing stderr of not-backgrounded NetworkManager gives this:

NetworkManager: <information>   wpa_supplicant(7592): 
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
NetworkManager: <information>   wpa_supplicant(7592): WEXT: Operstate: 
linkmode=-1, operstate=5
NetworkManager: <information>   wpa_supplicant(7592): wpa_driver_wext_associate
NetworkManager: <information>   wpa_supplicant(7592): Setting authentication 
timeout: 10 sec 0 usec
NetworkManager: <information>   wpa_supplicant(7592): EAPOL: External 
notification - portControl=ForceAuthorized
[...]

I am not expert on this but to me it seems that it is wpa_supplicant bug
which, in the codepath of unencrypted association, wants to talk to
either stdout, stderr or stdin, which are closed if NetworkManager is
backgrounded. I wasn't able to determine the cause of timeout from
strace -ff NetworkManager, which is quite cluttered.

Can someone else test if this works? In that case this bug will be
assigned to wpa_supplicant.

-- 
Unable to connect to unsecured/unencrypted wireless networks (bcm43xx-based 
chips only?)
https://bugs.launchpad.net/bugs/73759
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to