From 0c0aea7387ca4bd48cb38ec42989d7ceb6248432 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Mon, 19 Oct 2009 18:38:45 +0000 Subject: filter out CDMA-only providers --- lib/network/connection/cellular.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/network') 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, '|'); } -- cgit v1.2.1