Re: small potential exception when adding a wifi connection while device =?UTF-8?Q?disconnected=E2=80=8F?=
- From: Dan Williams <dcbw redhat com>
- To: Jonas Vikstrom <jonas_vikstrom hotmail com>
- Cc: networkmanager-list gnome org
- Subject: Re: small potential exception when adding a wifi connection while device disconnected
- Date: Wed, 16 May 2012 17:49:07 -0500
On Tue, 2012-05-08 at 19:11 +0000, Jonas Vikstrom wrote:
> Hello,
> I have potentially found a small exception when adding a wifi
> connection while device disconnected.
>
>
> If I do:
>
>
> dev_iface.Disconnect()
> ...
> con_path = nm_settings_iface.AddConnection(config)
> activate_connection(get_con_uuid_by_path(con_path))
> #activate in case it was previously disconneced
>
>
> but the config contains a faulty encryption key (psk)
>
>
> I then monitor the progress with a looping
> dev_prop_iface.Get("org.freedesktop.NetworkManager.Device", "State")
>
>
> it starts as expected with 50 for a while. Then it would normally give
> up and switch to 60.
> I will then catch this and prompt for a new password.
>
>
> BUT when we started with a disconnected wifi the state is switched
> back to 30 instead.
> Is this by design? I notice that there is no dev_iface.Connect()....
>
>
> Complete code here
> https://github.com/vikjon0/qfpynm
> (I have kind of worked around the problem but not sure if I will get
> sub seq issues)
Can you grab some NM log output? Either run NM with --no-daemon or
grab /var/log/messages (or wherever syslog dumps the 'daemon' facility
in your distro).
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]