summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/cellular_bluetooth.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-15 22:10:04 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-15 22:10:04 +0000
commitec987949cb05f01906983fe1a4cafea0c9dec85d (patch)
tree47427ba2a1dfa2cafcc4686caad5d8d697fe0aee /lib/network/connection/cellular_bluetooth.pm
parent20e7229a7664a938d5f11e27942b727fb22e51ad (diff)
downloaddrakx-net-ec987949cb05f01906983fe1a4cafea0c9dec85d.tar
drakx-net-ec987949cb05f01906983fe1a4cafea0c9dec85d.tar.gz
drakx-net-ec987949cb05f01906983fe1a4cafea0c9dec85d.tar.bz2
drakx-net-ec987949cb05f01906983fe1a4cafea0c9dec85d.tar.xz
drakx-net-ec987949cb05f01906983fe1a4cafea0c9dec85d.zip
extract set_ppp_settings functions, to be called to apply network selection only
Diffstat (limited to 'lib/network/connection/cellular_bluetooth.pm')
-rw-r--r--lib/network/connection/cellular_bluetooth.pm12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/network/connection/cellular_bluetooth.pm b/lib/network/connection/cellular_bluetooth.pm
index 77bf964..0f89b2c 100644
--- a/lib/network/connection/cellular_bluetooth.pm
+++ b/lib/network/connection/cellular_bluetooth.pm
@@ -70,6 +70,14 @@ sub search_services {
@services;
}
+sub set_ppp_settings {
+ my ($self) = @_;
+
+ my $cid = 1;
+ $self->{access}{at_commands} = [ qq(AT+CGDCONT=$cid,"IP","$self->{access}{apn}") ];
+ $self->{access}{dial_number} = "*99***$cid#";
+}
+
sub write_settings {
my ($self) = @_;
@@ -83,10 +91,6 @@ rfcomm$dev {
}
));
- my $cid = 1;
- $self->{access}{at_commands} = [ qq(AT+CGDCONT=$cid,"IP","$self->{access}{apn}") ];
- $self->{access}{dial_number} = "*99***$cid#";
-
$self->SUPER::write_settings;
}