summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-10-19 18:38:45 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-10-19 18:38:45 +0000
commit0c0aea7387ca4bd48cb38ec42989d7ceb6248432 (patch)
tree05a9d357dd961ccf97e0c5e8e67b05a08eba1554 /lib/network
parentb230cac3c38258e989f4ff954e6e8a81babcc879 (diff)
downloaddrakx-net-0c0aea7387ca4bd48cb38ec42989d7ceb6248432.tar
drakx-net-0c0aea7387ca4bd48cb38ec42989d7ceb6248432.tar.gz
drakx-net-0c0aea7387ca4bd48cb38ec42989d7ceb6248432.tar.bz2
drakx-net-0c0aea7387ca4bd48cb38ec42989d7ceb6248432.tar.xz
drakx-net-0c0aea7387ca4bd48cb38ec42989d7ceb6248432.zip
filter out CDMA-only providers
Diffstat (limited to 'lib/network')
-rw-r--r--lib/network/connection/cellular.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/network/connection/cellular.pm b/lib/network/connection/cellular.pm
index 4c58338..5bb2259 100644
--- a/lib/network/connection/cellular.pm
+++ b/lib/network/connection/cellular.pm
@@ -12,7 +12,12 @@ sub get_providers {
require network::connection::providers::cellular;
# providers imported from mobile-broadband-provider-info
require network::connection::providers::cellular_extra;
- my %providers = (%network::connection::providers::cellular::data, %network::connection::providers::cellular_extra::data);
+ # combine custom providers with m.b.p.i. imported ones,
+ # filtering out CDMA-only providers which we do not support for now
+ my %providers = (
+ %network::connection::providers::cellular::data,
+ grep_each{!$::b->{cdma} } %network::connection::providers::cellular_extra::data
+ );
(\%providers, '|');
}