]> git.ipfire.org Git - people/ms/network.git/commitdiff
modem: Speed-up chatting to modem
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Mar 2016 18:44:28 +0000 (18:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Mar 2016 18:44:28 +0000 (18:44 +0000)
It is not checked any more if the SIM card is unlocked.

That needs to be done on a higher level now and will allow
us to execute the other commands quicker.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.modem

index 673bea6cbc9f8dcc9a6c56cac3013f54d1456458..fd4ea17f1512491bcad0c0757cd1b4c86a6aa3ff 100644 (file)
@@ -51,7 +51,6 @@ modem_chat() {
        done
 
        assert serial_exists ${device}
-       assert serial_is_unlocked ${device}
        assert isset answer
        assert isset timeout
 
@@ -320,9 +319,6 @@ modem_get_sim_imsi() {
        local device=${1}
        assert isset device
 
-       # Make sure the SIM card is unlocked for this operation.
-       assert modem_sim_unlocked ${device}
-
        modem_chat ${device} "AT+CIMI"
 }
 
@@ -364,9 +360,6 @@ modem_get_network_registration() {
        local device=${1}
        assert isset device
 
-       # Make sure the SIM card is unlocked for this operation.
-       assert modem_sim_unlocked ${device}
-
        local output
        output=$(modem_chat ${device} "AT+CREG?")
        assert_check_retval $?
@@ -423,9 +416,6 @@ modem_set_network_registration() {
        local device=${1}
        assert isset device
 
-       # Make sure the SIM card is unlocked for this operation.
-       assert modem_sim_unlocked ${device}
-
        local mode=${2}
        assert isset mode
 
@@ -436,9 +426,6 @@ modem_scan_networks() {
        local device=${1}
        assert isset device
 
-       # Make sure the SIM card is unlocked for this operation.
-       assert modem_sim_unlocked ${device}
-
        local output
        output=$(modem_chat --timeout=60 ${device} "AT+COPS=?")
        assert_check_retval $?
@@ -452,9 +439,6 @@ __modem_get_network_operator() {
        local device=${1}
        assert isset device
 
-       # Make sure the SIM card is unlocked for this operation.
-       assert modem_sim_unlocked ${device}
-
        local argument=${2}
        assert isset argument
 
@@ -562,9 +546,6 @@ __modem_get_signal_quality() {
        local device=${1}
        assert isset device
 
-       # Make sure the SIM card is unlocked for this operation.
-       assert modem_sim_unlocked ${device}
-
        local argument=${2}
        assert isset argument