summaryrefslogtreecommitdiffstats
path: root/lib/network/connection
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-23 13:52:28 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-23 13:52:28 +0000
commit8dc1d60da82e490245f482ffc26e66f53486fe2c (patch)
treec2c1ca1651909de5a5850c4cf39ee72a794f6fe4 /lib/network/connection
parentac1454746e6d312be5dfef85b09cf962b7582831 (diff)
downloaddrakx-net-8dc1d60da82e490245f482ffc26e66f53486fe2c.tar
drakx-net-8dc1d60da82e490245f482ffc26e66f53486fe2c.tar.gz
drakx-net-8dc1d60da82e490245f482ffc26e66f53486fe2c.tar.bz2
drakx-net-8dc1d60da82e490245f482ffc26e66f53486fe2c.tar.xz
drakx-net-8dc1d60da82e490245f482ffc26e66f53486fe2c.zip
prefer preconfigured settings for current network, if any
Diffstat (limited to 'lib/network/connection')
-rw-r--r--lib/network/connection/cellular.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection/cellular.pm b/lib/network/connection/cellular.pm
index 3b9c6e0..11e6be1 100644
--- a/lib/network/connection/cellular.pm
+++ b/lib/network/connection/cellular.pm
@@ -45,7 +45,7 @@ sub guess_apn_from_chat {
sub guess_provider_settings {
my ($self) = @_;
my $settings = $self->load_cellular_settings;
- my $apn = $self->guess_apn_from_chat || $settings && $settings->{APN};
+ my $apn = $settings && $settings->{APN} || $self->guess_apn_from_chat;
if ($apn) {
my @providers_data = $self->get_providers;
$self->{provider_name} ||= find { $providers_data[0]{$_}{apn} eq $apn } keys %{$providers_data[0]};