From d75832220b42f1a93af510d27a31ce84d5c28a82 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Tue, 27 Oct 2009 13:45:24 +0000 Subject: Ignoring non-fatal wpa_supplicant messages (#54002) --- lib/network/connection_manager.pm | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'lib/network/connection_manager.pm') diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index 33ca700..827da6f 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -484,14 +484,16 @@ sub setup_dbus_handlers { if ($msg->get_interface eq 'com.mandriva.monitoring.wireless' && $msg->get_member eq 'Event') { my ($event, $interface) = $msg->get_args_list; print "got wireless event: $event $interface\n"; - my $cmanager = find { $_->{connection}->get_interface eq $interface } @$cmanagers; - if ($cmanager && $cmanager->{wait_message}) { - # CTRL-EVENT-CONNECTED does not have to be handled, further status will be handled by interface status code - if ($event =~ /Authentication with (.+?) timed out/) { - undef $cmanager->{wait_message}; - $cmanager->{in}->ask_warn(N("Error"), N("Connection failed.")); - } - } + # eugeni: wpa_supplicant seems to issue 'Authentication..timed out messages' even if they + # are not fatal (#54002). We should either handle them with more care, or just ignore them altogether +# my $cmanager = find { $_->{connection}->get_interface eq $interface } @$cmanagers; +# if ($cmanager && $cmanager->{wait_message}) { +# # CTRL-EVENT-CONNECTED does not have to be handled, further status will be handled by interface status code +# if ($event =~ /Authentication with (.+?) timed out/) { +# undef $cmanager->{wait_message}; +# $cmanager->{in}->ask_warn(N("Error"), N("Connection failed.")); +# } +# } } }); $dbus->{connection}->add_match("type='signal',interface='com.mandriva.network'"); -- cgit v1.2.1