From: Michael Tremer Date: Sat, 26 Mar 2016 18:44:28 +0000 (+0000) Subject: modem: Speed-up chatting to modem X-Git-Tag: 008~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b33be8694b224dad33ce5982b24f85526bd9fe66;p=network.git modem: Speed-up chatting to modem 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 --- diff --git a/src/functions/functions.modem b/src/functions/functions.modem index 673bea6c..fd4ea17f 100644 --- a/src/functions/functions.modem +++ b/src/functions/functions.modem @@ -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