From 05ea23cd891b490a0702c927a6138fd0eb756920 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 26 Feb 2008 17:39:23 +0000 Subject: do not run sdptool search when detecting connections in fast mode --- lib/network/connection/cellular_bluetooth.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/network/connection/cellular_bluetooth.pm b/lib/network/connection/cellular_bluetooth.pm index cc75be7..912438c 100644 --- a/lib/network/connection/cellular_bluetooth.pm +++ b/lib/network/connection/cellular_bluetooth.pm @@ -10,7 +10,11 @@ my $rfcomm_dev_prefix = "/dev/rfcomm"; sub get_type_name { N("Bluetooth") } sub get_type_description { N("Bluetooth Dial Up Networking") } sub _get_type_icon { 'bluetooth' } -sub get_devices { search_services('DUN') } +sub get_devices { + my ($_class, %options) = @_; + ($options{fast_only} ? () : search_services('DUN')); +} + sub get_metric { 45 } sub get_interface { "ppp0" } -- cgit v1.2.1