Trying to set the networking mode to "bridge" mode in the plugin is bogus
because the setting does not apply until after the device has been
reset.  Instead, the current setting should be queried.

If a user wants to set the modem networking mode, the setting should be
made outside of ofono.

The gprs-context driver has already been adjusted to query the
networking mode and to set things up accordingly.
---
 plugins/ublox.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/plugins/ublox.c b/plugins/ublox.c
index 8100dfba..dc001765 100644
--- a/plugins/ublox.c
+++ b/plugins/ublox.c
@@ -145,11 +145,6 @@ static void cfun_enable(gboolean ok, GAtResult *result, 
gpointer user_data)
                return;
        }
 
-       if (data->flags & UBLOX_DEVICE_F_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);
 }
 
-- 
2.19.1

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

Reply via email to