Re: [PATCH v2 2/9] Ignore rild modem devices.
- From: Dan Williams <dcbw redhat com>
- To: Tony Espy <espy canonical com>, networkmanager-list gnome org
- Cc: Mathieu Trudel-Lapierre <mathieu trudel-lapierre canonical com>
- Subject: Re: [PATCH v2 2/9] Ignore rild modem devices.
- Date: Tue, 14 Jun 2016 11:42:29 -0500
On Fri, 2016-06-10 at 17:56 -0400, Tony Espy wrote:
From: Mathieu Trudel-Lapierre <mathieu trudel-lapierre canonical com>
Gbp-Pq: Name Ignore-rild-modem-devices.patch
---
src/nm-manager.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/nm-manager.c b/src/nm-manager.c
index e64c68a..be21baa 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -2057,6 +2057,14 @@ platform_link_added (NMManager *self,
gboolean ignore = FALSE;
gs_free_error GError *error = NULL;
+ /* Ignore rild modem devices, which will be handled
by their modem parent */
+ if (g_str_has_prefix (plink->name, "rmnet") ||
+ g_str_has_prefix (plink->name, "rev_rmnet")
||
+ g_str_has_prefix (plink->name, "ccmni")) {
+ _LOGW (LOGD_HW, "Ignoring rild modem device:
%s", plink->name);
+ return;
+ }
+
device = nm_device_factory_create_device (factory,
plink->name, plink, NULL, &ignore, &error);
if (!device) {
if (!ignore) {
I pushed an alternate version of this patch to th/review/ofono; Thomas
is right that to put this into the WWAN plugin would require them being
tagged with devtype=WWAN, and none of the drivers do that, at least
from sources I can find. Since they aren't upstream, we can't fix
them.
Instead, I think we should tag them with TYPE_WWAN_NET, and they'll get
automatically ignored by the WWAN plugin.
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]