From 1e49560335da4103ea0f3dbfd670a5da64fc6016 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 15 May 2008 22:29:08 +0000 Subject: do not dial for hso drivers, ifup-hso will send special connection commands instead --- lib/network/connection/cellular.pm | 2 +- lib/network/connection/cellular_card.pm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/network') diff --git a/lib/network/connection/cellular.pm b/lib/network/connection/cellular.pm index e7a842a..51d9e3d 100644 --- a/lib/network/connection/cellular.pm +++ b/lib/network/connection/cellular.pm @@ -53,7 +53,7 @@ sub get_access_settings { sub set_ppp_settings { my ($self) = @_; $self->{access}{use_chat} = 1; - $self->{access}{dial_number} = "*99***$self->{access}{cid}#"; + $self->{access}{dial_number} = !$self->{access}{no_dial} && "*99***$self->{access}{cid}#"; } sub write_settings { diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm index e26d11e..a9b70ad 100644 --- a/lib/network/connection/cellular_card.pm +++ b/lib/network/connection/cellular_card.pm @@ -106,7 +106,9 @@ sub build_peer { sub set_ppp_settings { my ($self) = @_; + $self->{access}{no_dial} = $self->get_driver eq "hso"; $self->{access}{cid} = 3; + $self->{access}{at_commands} = [ "AT+CPIN?", # Set +CGEE to 2 -- cgit v1.2.1