[PATCH 1/6] gobi: PERSIST_LOW_POWER instead of LOW_POWER when disabling modem

Ivaylo Dimitrov <[email protected]> Fri, 25 Jul 2025 15:19:49 +0300
Newsgroups dev.linux.lists.ofono
Message-ID <[email protected]>
We don't want modem to auto wake-up when
---
 plugins/gobi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/gobi.c b/plugins/gobi.c
index 52ead377..027c4dba 100644
--- a/plugins/gobi.c
+++ b/plugins/gobi.c
@@ -442,7 +442,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_LOW_POWER);
+					QMI_DMS_OPER_MODE_PERSIST_LOW_POWER);
 		if (!param) {
 			shutdown_device(modem);
 			return;
@@ -922,7 +922,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_LOW_POWER);
+					QMI_DMS_OPER_MODE_PERSIST_LOW_POWER);
 	if (!param)
 		return -ENOMEM;
 
-- 
2.25.1