[PATCH] filter: fix option1 driver name

Aleksander Morgado aleksander at aleksander.es
Mon May 7 16:33:07 UTC 2018


This was preventing TTY-only ZTE and Huawei modules from being grabbed
in STRICT mode.

https://bugs.freedesktop.org/show_bug.cgi?id=106253
https://bugs.freedesktop.org/show_bug.cgi?id=106234
---
 src/mm-filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mm-filter.c b/src/mm-filter.c
index 6526cfaa..41529e59 100644
--- a/src/mm-filter.c
+++ b/src/mm-filter.c
@@ -127,7 +127,7 @@ mm_filter_port (MMFilter        *self,
         /* If the TTY kernel driver is one expected modem kernel driver, allow it */
         driver = mm_kernel_device_get_driver (port);
         if ((self->priv->enabled_rules & MM_FILTER_RULE_TTY_DRIVER) &&
-            (!g_strcmp0 (driver, "option") ||
+            (!g_strcmp0 (driver, "option1") ||
              !g_strcmp0 (driver, "qcserial") ||
              !g_strcmp0 (driver, "sierra"))) {
             mm_dbg ("[filter] (%s/%s): port allowed: modem-specific kernel driver detected", subsystem, name);
-- 
2.17.0



More information about the ModemManager-devel mailing list