Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH 1/2] udevng: Do only label assignment for Speedup dongles
@ 2011-12-20 16:55 Philippe Nunes
  2011-12-20 16:55 ` [PATCH 2/2] Add udev rules " Philippe Nunes
  2011-12-20 17:24 ` [PATCH 1/2] udevng: Do only label assignment " Marcel Holtmann
  0 siblings, 2 replies; 4+ messages in thread
From: Philippe Nunes @ 2011-12-20 16:55 UTC (permalink / raw)
  To: ofono

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

---
 plugins/udevng.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/plugins/udevng.c b/plugins/udevng.c
index be87320..2c0633d 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -310,13 +310,6 @@ static gboolean setup_speedup(struct modem_info *modem)
 			mdm = info->devnode;
 			if (aux != NULL)
 				break;
-		} else if (g_strcmp0(info->interface, "255/255/255") == 0) {
-			if (g_strcmp0(info->number, "01") == 0)
-				aux = info->devnode;
-			else if (g_strcmp0(info->number, "02") == 0)
-				mdm = info->devnode;
-			else if (g_strcmp0(info->number, "03") == 0)
-				mdm = info->devnode;
 		}
 	}
 
-- 
1.7.1


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

* [PATCH 2/2] Add udev rules for Speedup dongles
  2011-12-20 16:55 [PATCH 1/2] udevng: Do only label assignment for Speedup dongles Philippe Nunes
@ 2011-12-20 16:55 ` Philippe Nunes
  2011-12-20 17:25   ` Marcel Holtmann
  2011-12-20 17:24 ` [PATCH 1/2] udevng: Do only label assignment " Marcel Holtmann
  1 sibling, 1 reply; 4+ messages in thread
From: Philippe Nunes @ 2011-12-20 16:55 UTC (permalink / raw)
  To: ofono

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

---
 plugins/ofono-speedup.rules |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 plugins/ofono-speedup.rules

diff --git a/plugins/ofono-speedup.rules b/plugins/ofono-speedup.rules
new file mode 100644
index 0000000..f43fc7b
--- /dev/null
+++ b/plugins/ofono-speedup.rules
@@ -0,0 +1,23 @@
+# do not edit this file, it will be overwritten on update
+
+ACTION!="add|change", GOTO="ofono_speedup_end"
+
+SUBSYSTEM!="tty", GOTO="ofono_speedup_end"
+KERNEL!="ttyUSB[0-9]*", GOTO="ofono_speedup_end"
+
+# SpeedUp 7300
+ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9e00", ENV{ID_USB_INTERFACE_NUM}=="00", ENV{OFONO_LABEL}="modem"
+ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9e00", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_LABEL}="aux"
+
+# SpeedUp
+ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1005", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_LABEL}="modem"
+ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1005", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_LABEL}="aux"
+
+ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_LABEL}="modem"
+ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_LABEL}="aux"
+
+# SpeedUp 9800
+ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9800", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_LABEL}="modem"
+ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9800", ENV{ID_USB_INTERFACE_NUM}=="02", ENV{OFONO_LABEL}="aux"
+
+LABEL="ofono_speedup_end"
-- 
1.7.1


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

* Re: [PATCH 1/2] udevng: Do only label assignment for Speedup dongles
  2011-12-20 16:55 [PATCH 1/2] udevng: Do only label assignment for Speedup dongles Philippe Nunes
  2011-12-20 16:55 ` [PATCH 2/2] Add udev rules " Philippe Nunes
@ 2011-12-20 17:24 ` Marcel Holtmann
  1 sibling, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2011-12-20 17:24 UTC (permalink / raw)
  To: ofono

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

Hi Philippe,

>  plugins/udevng.c |    7 -------
>  1 files changed, 0 insertions(+), 7 deletions(-)

patch has been applied. Thanks.

Regards

Marcel



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

* Re: [PATCH 2/2] Add udev rules for Speedup dongles
  2011-12-20 16:55 ` [PATCH 2/2] Add udev rules " Philippe Nunes
@ 2011-12-20 17:25   ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2011-12-20 17:25 UTC (permalink / raw)
  To: ofono

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

Hi Philippe,

>  plugins/ofono-speedup.rules |   23 +++++++++++++++++++++++
>  1 files changed, 23 insertions(+), 0 deletions(-)
>  create mode 100644 plugins/ofono-speedup.rules

you might wanna add this file also to EXTRA_DIST. Otherwise it will
never be included in any release.

Regards

Marcel



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

end of thread, other threads:[~2011-12-20 17:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-20 16:55 [PATCH 1/2] udevng: Do only label assignment for Speedup dongles Philippe Nunes
2011-12-20 16:55 ` [PATCH 2/2] Add udev rules " Philippe Nunes
2011-12-20 17:25   ` Marcel Holtmann
2011-12-20 17:24 ` [PATCH 1/2] udevng: Do only label assignment " Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox