diff options
author | Denis Kenzior <denkenz@gmail.com> | 2024-04-30 12:03:03 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2024-04-30 12:18:51 -0500 |
commit | 75ba0c33e3e3017ff861bef263b7c725efa4483e (patch) | |
tree | 639a9ae37d2cd0a4143603f6cb411a52de695015 | |
parent | 3365880efc45e70c6fe914ad8c1619c8e935888d (diff) | |
download | ofono-75ba0c33e3e3017ff861bef263b7c725efa4483e.tar.gz |
gobi: Use LOW_POWER instead of PERSIST_LOW_POWER
PERSIST_LOW_POWER setting is supposed to tell the device that it should
not enter online state at the next bootup. Unfortunately, no USB
devices tested seem to honor this setting.
Telit devices in particular will turn off the SIM and become unusable
until set back into online mode. Use low-power instead of persistent
low power state instead. AlwaysOnline support is now no longer needed.
-rw-r--r-- | plugins/gobi.c | 4 | ||||
-rw-r--r-- | plugins/udevng.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/gobi.c b/plugins/gobi.c index 550ce7873..39c1ab81f 100644 --- a/plugins/gobi.c +++ b/plugins/gobi.c @@ -226,7 +226,7 @@ static void get_oper_mode_cb(struct qmi_result *result, void *user_data) switch (data->oper_mode) { case QMI_DMS_OPER_MODE_ONLINE: param = qmi_param_new_uint8(QMI_DMS_PARAM_OPER_MODE, - QMI_DMS_OPER_MODE_PERSIST_LOW_POWER); + QMI_DMS_OPER_MODE_LOW_POWER); if (!param) { shutdown_device(modem); return; @@ -480,7 +480,7 @@ static int gobi_disable(struct ofono_modem *modem) goto out; param = qmi_param_new_uint8(QMI_DMS_PARAM_OPER_MODE, - QMI_DMS_OPER_MODE_PERSIST_LOW_POWER); + QMI_DMS_OPER_MODE_LOW_POWER); if (!param) return -ENOMEM; diff --git a/plugins/udevng.c b/plugins/udevng.c index b9d115f16..243dcd6e9 100644 --- a/plugins/udevng.c +++ b/plugins/udevng.c @@ -850,7 +850,6 @@ static gboolean setup_telitqmi(struct modem_info *modem) return FALSE; ofono_modem_set_boolean(modem->modem, "ForceSimLegacy", TRUE); - ofono_modem_set_boolean(modem->modem, "AlwaysOnline", TRUE); return TRUE; } |