Open Source Telephony
 help / color / mirror / Atom feed
* Re: [PATCH 1/2] cdmamodem: Support speedup dormant notification
  2011-12-12 11:11 ` [PATCH 1/2] cdmamodem: Support speedup dormant notification Guillaume Zajac
@ 2011-12-10 23:33   ` Denis Kenzior
  0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2011-12-10 23:33 UTC (permalink / raw)
  To: ofono

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

Hi Guillaume,

On 12/12/2011 05:11 AM, Guillaume Zajac wrote:
> ---
>  drivers/cdmamodem/connman.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/cdmamodem/connman.c b/drivers/cdmamodem/connman.c
> index 8c3265a..41708f7 100644
> --- a/drivers/cdmamodem/connman.c
> +++ b/drivers/cdmamodem/connman.c
> @@ -264,6 +264,11 @@ static void at_c0_cb(gboolean ok, GAtResult *result, gpointer user_data)
>  	}
>  
>  	switch (cd->vendor) {
> +	case OFONO_VENDOR_SPEEDUP:
> +		/*
> +		 * Fall through: SpeedUp modem uses same prefix as Huawei
> +		 * modem for dormant notification.
> +		 */

If the handling is exactly the same, then it is better to just skip this
step.  Using OFONO_VENDOR_HUAWEI from the speedup plugin is just fine.

>  	case OFONO_VENDOR_HUAWEI:
>  		chat = g_at_chat_get_slave(cd->chat);
>  		g_at_chat_register(chat, "^DSDORMANT", huawei_dsdormant_notify,

Regards,
-Denis

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

* [PATCH 0/2] Add dormant notification support for speedupcdma modems
@ 2011-12-12 11:11 Guillaume Zajac
  2011-12-12 11:11 ` [PATCH 1/2] cdmamodem: Support speedup dormant notification Guillaume Zajac
  2011-12-12 11:11 ` [PATCH 2/2] speedupcdma: Tweak plugin to notify dormant state Guillaume Zajac
  0 siblings, 2 replies; 4+ messages in thread
From: Guillaume Zajac @ 2011-12-12 11:11 UTC (permalink / raw)
  To: ofono

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

Hi,

Those 2 patches added dormant notification support for SpeedUp CDMA modems.
The prefix used for notification is the same as Huawei modem one.

Kind regards,
Guillaume

Guillaume Zajac (2):
  cdmamodem: Support speedup dormant notification
  speedupcdma: Tweak plugin to notify dormant state

 drivers/cdmamodem/connman.c |    5 +++++
 plugins/speedupcdma.c       |    7 ++++++-
 2 files changed, 11 insertions(+), 1 deletions(-)


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

* [PATCH 1/2] cdmamodem: Support speedup dormant notification
  2011-12-12 11:11 [PATCH 0/2] Add dormant notification support for speedupcdma modems Guillaume Zajac
@ 2011-12-12 11:11 ` Guillaume Zajac
  2011-12-10 23:33   ` Denis Kenzior
  2011-12-12 11:11 ` [PATCH 2/2] speedupcdma: Tweak plugin to notify dormant state Guillaume Zajac
  1 sibling, 1 reply; 4+ messages in thread
From: Guillaume Zajac @ 2011-12-12 11:11 UTC (permalink / raw)
  To: ofono

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

---
 drivers/cdmamodem/connman.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/cdmamodem/connman.c b/drivers/cdmamodem/connman.c
index 8c3265a..41708f7 100644
--- a/drivers/cdmamodem/connman.c
+++ b/drivers/cdmamodem/connman.c
@@ -264,6 +264,11 @@ static void at_c0_cb(gboolean ok, GAtResult *result, gpointer user_data)
 	}
 
 	switch (cd->vendor) {
+	case OFONO_VENDOR_SPEEDUP:
+		/*
+		 * Fall through: SpeedUp modem uses same prefix as Huawei
+		 * modem for dormant notification.
+		 */
 	case OFONO_VENDOR_HUAWEI:
 		chat = g_at_chat_get_slave(cd->chat);
 		g_at_chat_register(chat, "^DSDORMANT", huawei_dsdormant_notify,
-- 
1.7.1


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

* [PATCH 2/2] speedupcdma: Tweak plugin to notify dormant state
  2011-12-12 11:11 [PATCH 0/2] Add dormant notification support for speedupcdma modems Guillaume Zajac
  2011-12-12 11:11 ` [PATCH 1/2] cdmamodem: Support speedup dormant notification Guillaume Zajac
@ 2011-12-12 11:11 ` Guillaume Zajac
  1 sibling, 0 replies; 4+ messages in thread
From: Guillaume Zajac @ 2011-12-12 11:11 UTC (permalink / raw)
  To: ofono

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

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

diff --git a/plugins/speedupcdma.c b/plugins/speedupcdma.c
index 3b398aa..b43e008 100644
--- a/plugins/speedupcdma.c
+++ b/plugins/speedupcdma.c
@@ -37,6 +37,8 @@
 #include <ofono/cdma-connman.h>
 #include <ofono/log.h>
 
+#include "drivers/atmodem/vendor.h"
+
 struct speedupcdma_data {
 	GAtChat *modem;
 	GAtChat *aux;
@@ -146,6 +148,8 @@ static int speedupcdma_enable(struct ofono_modem *modem)
 		return -EIO;
 	}
 
+	g_at_chat_set_slave(data->modem, data->aux);
+
 	g_at_chat_send(data->modem, "ATE0 &C0 +CMEE=1", NULL, NULL, NULL, NULL);
 	g_at_chat_send(data->aux, "ATE0 &C0 +CMEE=1", NULL, NULL, NULL, NULL);
 
@@ -210,7 +214,8 @@ static void speedupcdma_post_online(struct ofono_modem *modem)
 
 	DBG("%p", modem);
 
-	ofono_cdma_connman_create(modem, 0, "cdmamodem", data->modem);
+	ofono_cdma_connman_create(modem, OFONO_VENDOR_SPEEDUP, "cdmamodem",
+					data->modem);
 }
 
 static struct ofono_modem_driver speedupcdma_driver = {
-- 
1.7.1


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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-12 11:11 [PATCH 0/2] Add dormant notification support for speedupcdma modems Guillaume Zajac
2011-12-12 11:11 ` [PATCH 1/2] cdmamodem: Support speedup dormant notification Guillaume Zajac
2011-12-10 23:33   ` Denis Kenzior
2011-12-12 11:11 ` [PATCH 2/2] speedupcdma: Tweak plugin to notify dormant state Guillaume Zajac

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