--- plugins/udev.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/plugins/udev.c b/plugins/udev.c index 255755e..99b500a 100644 --- a/plugins/udev.c +++ b/plugins/udev.c @@ -105,7 +105,7 @@ static void add_mbm(struct ofono_modem *modem, struct udev_device *udev_device) { const char *desc, *devnode; - const char *device, *data, *network; + const char *device, *data, *network, *gps; int registered; desc = udev_device_get_sysattr_value(udev_device, "device/interface"); @@ -152,8 +152,9 @@ static void add_mbm(struct ofono_modem *modem, device = ofono_modem_get_string(modem, MODEM_DEVICE); data = ofono_modem_get_string(modem, DATA_DEVICE); network = ofono_modem_get_string(modem, NETWORK_INTERFACE); + gps = ofono_modem_get_string(modem, GPS_DEVICE); - if (device != NULL && data != NULL && network != NULL) { + if (device != NULL && data != NULL && network != NULL && gps != NULL) { ofono_modem_set_integer(modem, "Registered", 1); ofono_modem_register(modem); } -- 1.7.2.3 _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono