Mathieu, that is an excellent question that Dan Williams covered in his commit 
for WiFi connections:
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=30fe3e18766367d159dfb16d7ca5559d7dc58b9a
"Otherwise we assume the secrets good; if they aren't, the user should change 
them through a configuration editor."

Looking at the Network Manager code itself it doesn't have much choice
as currently it doesn't get any error information from WPA supplicant.
In fact the way how Network Manager handles WPA supplicant errors is not
good at all. Basically Network Manager gives WPA supplicant 25 seconds
to finish the authentication. Without these two patches Network Manager
just assumes on timeout that the secret was bad and asks repeatedly to
correct the secret. But this behavior is frustrating for the users as
there are of course a lot more issues than just a bad secret that can
cause WPA supplicant to fail... These two commits change the behavior so
that Network Manager only asks to correct the secret if the connection
wasn't successful so far. I personally think that the new behavior is
still not good but at least it is a bit better than the previous
behavior.

IMHO to fix this issue one would need to change WPA supplicant to
properly export errors via its D-Bus interface and then Network Manager
needs to be changed to react properly depending on the actual WPA
supplicant error.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1272321

Title:
  Network Manager should only request new secrets during the initial
  connection for wired interfaces

Status in “network-manager” package in Ubuntu:
  In Progress

Bug description:
  Hi everyone,

  Network Manager received a patch so that it only requests new secrets during 
the initial connection for WiFi connections in 2012:
  
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=30fe3e18766367d159dfb16d7ca5559d7dc58b9a

  This patch has been ported for wired connections:
  https://bugzilla.gnome.org/show_bug.cgi?id=720265
  
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=6b5d31954fa655b47a9928f61d34ca74f92a953e

  Can we include the upstream patch for wired connections in Trusty?
  (The patch for WiFi connections is already present)

  Best,

  Michael Schaller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1272321/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to