All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] support for Ericsson N5321 gw
@ 2015-07-16 18:39 Johannes Schauer
  2015-07-16 19:12 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Schauer @ 2015-07-16 18:39 UTC (permalink / raw
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

Hi,

finally and with lots of help from denkenz in #ofono and jukkar in #connman, I
now have my Lenovo branded Ericsson N5321 gw modem (usb id 0bdb:193e) working
with ofono and connman \o/

Attached patch makes ofono work with the modem.

It turns out that on my system (Thinkpad T450s, Debian Sid, amd64, Linux
4.0.0), cdc_ncm was chosen as the driver for the ethernet interface instead of
cdc_ether

Also, udev reported:

    ATTRS{interface}=="Ericsson N5321 gw"

for the modem which did not match the existing suffixes "Network Adapter" or
"NetworkAdapter".

Thanks!

cheers, josch

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-add-support-for-Ericsson-N5321-gw.patch --]
[-- Type: text/x-diff, Size: 1412 bytes --]

From 692a343134b950a5786c9461bb9f9a14c08d16ac Mon Sep 17 00:00:00 2001
From: Johannes 'josch' Schauer <josch@mister-muffin.de>
Date: Thu, 16 Jul 2015 20:32:31 +0200
Subject: [PATCH] add support for Ericsson N5321 gw

---
 plugins/udevng.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/plugins/udevng.c b/plugins/udevng.c
index 09740ae..e43d045 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -118,6 +118,8 @@ static gboolean setup_mbm(struct modem_info *modem)
 		} else if (g_str_has_suffix(info->sysattr,
 						"Network Adapter") == TRUE ||
 				g_str_has_suffix(info->sysattr,
+						"gw") == TRUE ||
+				g_str_has_suffix(info->sysattr,
 						"NetworkAdapter") == TRUE) {
 			network = info->devnode;
 		}
@@ -1078,14 +1080,19 @@ static struct {
 	{ "icera",	"cdc_ether",	"0421", "0633"	},
 	{ "mbm",	"cdc_acm",	"0bdb"		},
 	{ "mbm",	"cdc_ether",	"0bdb"		},
+	{ "mbm",	"cdc_ncm",	"0bdb"		},
 	{ "mbm",	"cdc_acm",	"0fce"		},
 	{ "mbm",	"cdc_ether",	"0fce"		},
+	{ "mbm",	"cdc_ncm",	"0fce"		},
 	{ "mbm",	"cdc_acm",	"413c"		},
 	{ "mbm",	"cdc_ether",	"413c"		},
+	{ "mbm",	"cdc_ncm",	"413c"		},
 	{ "mbm",	"cdc_acm",	"03f0"		},
 	{ "mbm",	"cdc_ether",	"03f0"		},
+	{ "mbm",	"cdc_ncm",	"03f0"		},
 	{ "mbm",	"cdc_acm",	"0930"		},
 	{ "mbm",	"cdc_ether",	"0930"		},
+	{ "mbm",	"cdc_ncm",	"0930"		},
 	{ "hso",	"hso"				},
 	{ "gobi",	"qmi_wwan"			},
 	{ "gobi",	"qcserial"			},
-- 
2.1.4


[-- Attachment #3: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] support for Ericsson N5321 gw
  2015-07-16 18:39 [PATCH] support for Ericsson N5321 gw Johannes Schauer
@ 2015-07-16 19:12 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2015-07-16 19:12 UTC (permalink / raw
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

Hi Johannes,

On 07/16/2015 01:39 PM, Johannes Schauer wrote:
> Hi,
>
> finally and with lots of help from denkenz in #ofono and jukkar in #connman, I
> now have my Lenovo branded Ericsson N5321 gw modem (usb id 0bdb:193e) working
> with ofono and connman \o/
>
> Attached patch makes ofono work with the modem.
>
> It turns out that on my system (Thinkpad T450s, Debian Sid, amd64, Linux
> 4.0.0), cdc_ncm was chosen as the driver for the ethernet interface instead of
> cdc_ether
>
> Also, udev reported:
>
>      ATTRS{interface}=="Ericsson N5321 gw"
>
> for the modem which did not match the existing suffixes "Network Adapter" or
> "NetworkAdapter".
>
> Thanks!
>
> cheers, josch
>

Applied, thanks.

Regards,
-Denis


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-16 19:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-16 18:39 [PATCH] support for Ericsson N5321 gw Johannes Schauer
2015-07-16 19:12 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.