[PATCH 11/13] gobi: Support only "usb" Bus values
Denis Kenzior <[email protected]>
| Newsgroups | dev.linux.lists.ofono |
|---|---|
| Message-ID | <[email protected]> |
This may change in the future, but for now the gobi driver will only
support devices using the qmi_wwan network interface driver. This
driver is limited to USB.
---
plugins/gobi.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/plugins/gobi.c b/plugins/gobi.c
index e75a0312f6d0..6ad8a4b7f923 100644
--- a/plugins/gobi.c
+++ b/plugins/gobi.c
@@ -120,7 +120,7 @@ static void gobi_io_debug(const char *str, void *user_data)
* 'qmi_wwan' is supported.
*
* Bus
- * The bus of the modem. Values can be "usb", "embedded", or "pci"
+ * The bus of the modem. Values can be "usb"
*/
static int gobi_probe(struct ofono_modem *modem)
{
@@ -146,6 +146,9 @@ static int gobi_probe(struct ofono_modem *modem)
if (!L_IN_STRSET(if_driver, "qmi_wwan"))
return -ENOTSUP;
+ if (!L_IN_STRSET(bus, "usb"))
+ return -ENOTSUP;
+
data = l_new(struct gobi_data, 1);
data->main_net_ifindex =
ofono_modem_get_integer(modem, "NetworkInterfaceIndex");
--
2.45.2