diff options
author | Rafael Ignacio Zurita <rafael.zurita@profusion.mobi> | 2011-02-22 15:35:14 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-02-23 17:19:34 -0600 |
commit | a5bcf1c9b344a4e083eb2714e7bdda3fde02afbf (patch) | |
tree | 06cb01dca27d30c82350928a9b3c376025e32763 | |
parent | 9a1d0a788d76717818804bcfd71776149a43b1bc (diff) | |
download | ofono-a5bcf1c9b344a4e083eb2714e7bdda3fde02afbf.tar.bz2 |
udev: add location-reporting device to mbm
-rw-r--r-- | plugins/udev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/udev.c b/plugins/udev.c index 84478d78..aa5702eb 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); } |