I've never seen a major 0 service. The gobi2000 comes with
WMS 1.0 and doesn't support the bearer command. Guessing
it's 1.2 required.
---
 drivers/qmimodem/sms.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/qmimodem/sms.c b/drivers/qmimodem/sms.c
index 91501b75c4f4..3f4bdeb2a09c 100644
--- a/drivers/qmimodem/sms.c
+++ b/drivers/qmimodem/sms.c
@@ -277,7 +277,7 @@ static void qmi_bearer_query(struct ofono_sms *sms,
 
        DBG("");
 
-       if (data->major < 1 && data->minor < 2)
+       if (data->major < 1 || (data->major == 1 && data->minor < 2))
                goto error;
 
        if (qmi_service_send(data->wms, QMI_WMS_GET_DOMAIN_PREF, NULL,
@@ -315,7 +315,7 @@ static void qmi_bearer_set(struct ofono_sms *sms, int 
bearer,
 
        DBG("bearer %d", bearer);
 
-       if (data->major < 1 && data->minor < 2)
+       if (data->major < 1 || (data->major == 1 && data->minor < 2))
                goto error;
 
        domain = bearer_to_domain(bearer);
-- 
2.14.1

_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to