diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-05-15 22:29:08 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-05-15 22:29:08 +0000 |
commit | 1e49560335da4103ea0f3dbfd670a5da64fc6016 (patch) | |
tree | f00d0621280cea113cff38be3e17ac8880f5a152 | |
parent | ac674da1435aba942053eb90524be3201bdfb531 (diff) | |
download | drakx-net-1e49560335da4103ea0f3dbfd670a5da64fc6016.tar drakx-net-1e49560335da4103ea0f3dbfd670a5da64fc6016.tar.gz drakx-net-1e49560335da4103ea0f3dbfd670a5da64fc6016.tar.bz2 drakx-net-1e49560335da4103ea0f3dbfd670a5da64fc6016.tar.xz drakx-net-1e49560335da4103ea0f3dbfd670a5da64fc6016.zip |
do not dial for hso drivers, ifup-hso will send special connection commands instead
-rw-r--r-- | lib/network/connection/cellular.pm | 2 | ||||
-rw-r--r-- | lib/network/connection/cellular_card.pm | 2 |
2 files changed, 3 insertions, 1 deletions
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 |