plugin: fix icera filters when using the allowed product string filter
This commit is contained in:
@@ -304,7 +304,6 @@ apply_post_probing_filters (MMPlugin *self,
|
|||||||
MMPortProbe *probe)
|
MMPortProbe *probe)
|
||||||
{
|
{
|
||||||
gboolean vendor_filtered = FALSE;
|
gboolean vendor_filtered = FALSE;
|
||||||
gboolean product_filtered = FALSE;
|
|
||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
/* The plugin may specify that only some vendor strings are supported. If
|
/* The plugin may specify that only some vendor strings are supported. If
|
||||||
@@ -353,7 +352,7 @@ apply_post_probing_filters (MMPlugin *self,
|
|||||||
|
|
||||||
/* If we didn't get any vendor or product: filtered */
|
/* If we didn't get any vendor or product: filtered */
|
||||||
if (!vendor || !product)
|
if (!vendor || !product)
|
||||||
product_filtered = TRUE;
|
return TRUE;
|
||||||
else {
|
else {
|
||||||
for (i = 0; self->priv->product_strings[i].l; i++) {
|
for (i = 0; self->priv->product_strings[i].l; i++) {
|
||||||
gboolean found;
|
gboolean found;
|
||||||
@@ -372,10 +371,10 @@ apply_post_probing_filters (MMPlugin *self,
|
|||||||
|
|
||||||
/* If we didn't match any product: unsupported */
|
/* If we didn't match any product: unsupported */
|
||||||
if (!self->priv->product_strings[i].l)
|
if (!self->priv->product_strings[i].l)
|
||||||
product_filtered = TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return product_filtered;
|
/* Keep on with next filters */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The plugin may specify that only Icera-based modems are supported.
|
/* The plugin may specify that only Icera-based modems are supported.
|
||||||
|
Reference in New Issue
Block a user