summaryrefslogtreecommitdiffstats
path: root/lib/network/monitor.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-05 12:47:31 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-05 12:47:31 +0000
commiteb55abc0f7bacca010a5c98c275a739f60fc6cb6 (patch)
treef97b2e0a54b40a137fe608501678824616f60c75 /lib/network/monitor.pm
parent5c5f19a419e2da2c5f9d4d338943bf7affac7c15 (diff)
downloaddrakx-net-eb55abc0f7bacca010a5c98c275a739f60fc6cb6.tar
drakx-net-eb55abc0f7bacca010a5c98c275a739f60fc6cb6.tar.gz
drakx-net-eb55abc0f7bacca010a5c98c275a739f60fc6cb6.tar.bz2
drakx-net-eb55abc0f7bacca010a5c98c275a739f60fc6cb6.tar.xz
drakx-net-eb55abc0f7bacca010a5c98c275a739f60fc6cb6.zip
do not show as selected the APs with same ESSID as current AP
Diffstat (limited to 'lib/network/monitor.pm')
-rw-r--r--lib/network/monitor.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm
index a1db598..5ae0f4a 100644
--- a/lib/network/monitor.pm
+++ b/lib/network/monitor.pm
@@ -68,7 +68,7 @@ sub list_wireless {
};
foreach (@list) {
if ((/^\s*$/ || /Cell/) && exists $net->{ap}) {
- $net->{current} = to_bool($net->{essid} && $net->{essid} eq $current_essid || $net->{ap} eq $current_ap);
+ $net->{current} = to_bool($net->{ap} ? $net->{ap} eq $current_ap : $net->{essid} && $net->{essid} eq $current_essid);
$networks{$net->{ap}} = $net;
$net = {};
}