Where possible means Toby L2 in high speed mode.

The bridge mode is set before enabling the modem because the
driver requires this.
---
 plugins/ublox.c | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/plugins/ublox.c b/plugins/ublox.c
index 23ed2cb..c47c6aa 100644
--- a/plugins/ublox.c
+++ b/plugins/ublox.c
@@ -142,6 +142,11 @@ static void cfun_enable(gboolean ok, GAtResult *result, 
gpointer user_data)
                return;
        }
 
+       if (data->model_id == TOBYL2_HIGH_THROUGHPUT_MODE)
+               /* use bridged mode until routed mode support is added */
+               g_at_chat_send(data->aux, "AT+UBMCONF=2", none_prefix,
+                                               NULL, NULL, NULL);
+
        ofono_modem_set_powered(modem, TRUE);
 }
 
@@ -289,13 +294,19 @@ static void ublox_post_sim(struct ofono_modem *modem)
        struct ublox_data *data = ofono_modem_get_data(modem);
        struct ofono_gprs *gprs;
        struct ofono_gprs_context *gc;
+       GAtChat *chat = data->modem ? data->modem : data->aux;
 
        DBG("%p", modem);
 
        gprs = ofono_gprs_create(modem, data->vendor_family, "atmodem",
                                        data->aux);
-       gc = ofono_gprs_context_create(modem, data->vendor_family, "atmodem",
-                                       data->modem ? data->modem : data->aux);
+       if (data->model_id == TOBYL2_HIGH_THROUGHPUT_MODE)
+               gc = ofono_gprs_context_create(modem, data->vendor_family,
+                                               "ubloxmodem", chat);
+
+       else
+               gc = ofono_gprs_context_create(modem, data->vendor_family,
+                                               "atmodem", chat);
 
        if (gprs && gc)
                ofono_gprs_add_context(gprs, gc);
-- 
2.5.0

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

Reply via email to