You are not logged in.

#1 2016-05-24 03:33:18

bl4ck5un
Member
Registered: 2015-01-28
Posts: 16

NetworkManager works with one of my Wi-Fi but no the other

Hi, guys,

I have two Wi-Fi hotspots and I can connect to one of them, but not the other. I'm using NetworkManager, whose log is attached below.

<info>  [1464059769.8826] device (wlp4s0): Activation: (wifi) connection 'Fan's Wi-Fi Network' has security, and secrets exist.  No new secrets needed.
<info>  [1464059769.8831] Config: added 'ssid' value 'Fan's Wi-Fi Network'
<info>  [1464059769.8835] Config: added 'scan_ssid' value '1'
<info>  [1464059769.8839] Config: added 'key_mgmt' value 'WPA-PSK'
<info>  [1464059769.8842] Config: added 'auth_alg' value 'OPEN'
<info>  [1464059769.8845] Config: added 'psk' value '<omitted>'
<info>  [1464059769.8994] sup-iface[0x1653ad0,wlp4s0]: config: set interface ap_scan to 1
<info>  [1464059769.9204] device (wlp4s0): supplicant interface state: disconnected -> authenticating
<info>  [1464059769.9304] device (wlp4s0): supplicant interface state: authenticating -> associated
<info>  [1464059769.9925] device (wlp4s0): supplicant interface state: associated -> completed
<info>  [1464059769.9925] device (wlp4s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'Fan's Wi-Fi Network'.
<info>  [1464059769.9926] device (wlp4s0): state change: config -> ip-config (reason 'none') [50 70 0]
<info>  [1464059769.9929] dhcp4 (wlp4s0): activation: beginning transaction (timeout in 45 seconds)
<warn>  [1464059815.0064] dhcp4 (wlp4s0): request timed out
<info>  [1464059815.0066] dhcp4 (wlp4s0): state changed unknown -> timeout
<info>  [1464059815.0361] dhcp4 (wlp4s0): canceled DHCP transaction
<info>  [1464059815.0362] dhcp4 (wlp4s0): state changed timeout -> done
<info>  [1464059815.0373] device (wlp4s0): state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
<info>  [1464059815.0379] manager: NetworkManager state is now DISCONNECTED
<warn>  [1464059815.0404] device (wlp4s0): Activation: failed for connection 'Fan's Wi-Fi Network'
<info>  [1464059815.0574] device (wlp4s0): state change: failed -> disconnected (reason 'none') [120 30 0]
<warn>  [1464059815.0970] sup-iface[0x1653ad0,wlp4s0]: connection disconnected (reason -3)
<info>  [1464059815.0971] device (wlp4s0): supplicant interface state: completed -> disconnected

It seems the problem is dhcp request timed out. So I double checked my router and fount it works just fine. Only a few devices were connected to it so it should have a plenty of IP addresses to assign. I note that the hotspot I can connect to is open, while this problematic one is not. But I double checked the authentication process (and dmesg log) but it seems fine.

Any thoughts? Which log should I dig into?

Thanks,
Fan

Offline

#2 2016-05-24 10:36:04

Azelphur
Member
Registered: 2016-05-24
Posts: 6

Re: NetworkManager works with one of my Wi-Fi but no the other

Hi, I have exactly the same issue.

Interestingly, in my case, it won't connect to NHS Hospital WiFi access points. I've been in both Margate (QEQM) and Canterbury Hospital and my laptop running ArchLinux refuses to connect to either of them with a DHCP request timed out, just like your log above.

Hoping this information is useful, as it seems like there's something the AP is doing that causes us to be unable to connect, even though these APs most definitely work. For reference I can connect to both of those access points with my Android phone.

Offline

#3 2016-05-24 11:14:42

Azelphur
Member
Registered: 2016-05-24
Posts: 6

Re: NetworkManager works with one of my Wi-Fi but no the other

Downgrading to networkmanager-1.2.0-1 resolves this issue for me, must be a bug somewhere.

Offline

#4 2016-05-24 16:49:52

bl4ck5un
Member
Registered: 2015-01-28
Posts: 16

Re: NetworkManager works with one of my Wi-Fi but no the other

Azelphur wrote:

Downgrading to networkmanager-1.2.0-1 resolves this issue for me, must be a bug somewhere.

Replacing the internal DHCP client with an external one solved my problem. My NetworkManager.conf looks like:

[main]
plugins=keyfile
#dhcp=internal
dhcp=dhclient
dns=default

Last edited by bl4ck5un (2016-05-24 16:50:13)

Offline

Board footer

Powered by FluxBB