diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-09-02 23:49:52 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-09-02 23:49:52 -0700 |
commit | f5bf6e309d36c93926681c7bdfb5995baf406b62 (patch) | |
tree | 6d8b3ca2b8c282720bc9ef193aecce6a94a9c702 /plugins/mbm.c | |
parent | b6acdcf9050fe95e210fdc6568010d77802ed65d (diff) | |
download | ofono-f5bf6e309d36c93926681c7bdfb5995baf406b62.tar.bz2 |
Add Ericsson MBM device detection to udev plugin
Diffstat (limited to 'plugins/mbm.c')
-rw-r--r-- | plugins/mbm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/mbm.c b/plugins/mbm.c index c11c9c40..695bcb0c 100644 --- a/plugins/mbm.c +++ b/plugins/mbm.c @@ -91,9 +91,12 @@ static int mbm_enable(struct ofono_modem *modem) DBG("%p", modem); - device = ofono_modem_get_string(modem, "Device"); - if (!device) - return -EINVAL; + device = ofono_modem_get_string(modem, "ModemDevice"); + if (!device) { + device = ofono_modem_get_string(modem, "Device"); + if (!device) + return -EINVAL; + } syntax = g_at_syntax_new_gsmv1(); data->chat = g_at_chat_new_from_tty(device, syntax); |