From c8cdfb4774ce9849120c4a0407c136c5fd88ba22 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 15 Sep 2005 04:39:03 +0000 Subject: fix hidden ssid always recognized as current when using iwlist --- perl-install/network/monitor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/network/monitor.pm b/perl-install/network/monitor.pm index 93384237b..96e3a225e 100644 --- a/perl-install/network/monitor.pm +++ b/perl-install/network/monitor.pm @@ -53,7 +53,7 @@ sub list_wireless { my $net = {}; foreach (@list) { if ((/^\s*$/ || /Cell/) && exists $net->{ap}) { - $net->{current} = to_bool($net->{essid} eq $current_essid || $net->{ap} eq $current_ap); + $net->{current} = to_bool($net->{essid} && $net->{essid} eq $current_essid || $net->{ap} eq $current_ap); $networks{$net->{ap}} = $net; $net = {}; } -- cgit v1.2.1