filter: allow 'option' string in the TTY driver filter list

Fixes
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/475
This commit is contained in:
Aleksander Morgado
2021-12-08 14:30:08 +01:00
parent e9f254ba3f
commit 559df16deb

View File

@@ -246,7 +246,8 @@ 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, "option1") ||
(!g_strcmp0 (driver, "option") ||
!g_strcmp0 (driver, "option1") ||
!g_strcmp0 (driver, "qcserial") ||
!g_strcmp0 (driver, "qcaux") ||
!g_strcmp0 (driver, "nozomi") ||