Comment 12 for bug 124706

Revision history for this message
Tony Espy (awe) wrote : Confirmed in Hardy...

I ran into this while testing Ubuntu Mobile. We have a private bug that's been reported about this behavior ( ie. hit cancel on passphrase dialog, can't connect on next try ).

The red herring exists in the file nm_dbus_nmi.c, in the function nm_dbus_get_wireless_user_key_done(), lines: 66-72:

-------

/* FIXME: since we're not marking the device as invalid, it's a fair bet
 * that NM will just try to reactivate the device again, and may fail
 * to get the user key in exactly the same way, which ends up right back
 * here... ad nauseaum. Figure out how to deal with a failure here.
 */

nm_ap_list_append_ap (data->invalid_ap_list, ap);

--------

This code is run when the response from the NMI:getKeyForNetwork dbus message is received with the error NMI_DBUS_USER_KEY_CANCELED_ERROR.

If the user tries to connect to the same network again, since the ap is on the invalid_ap_list, you see the following error in the log:

Dec 16 11:31:07 jens-laptop NetworkManager: <info> SWITCH: terminating current connection 'wlan0' because it's no longer valid.

I'll ping upstream and see if I can get any suggestions on how to work around this problem.

{{{
% make it-work-just
}}}