From aa917e5be11db89fbc84fb1d7f3e6ea58e1ac224 Mon Sep 17 00:00:00 2001 From: Guillaume Zajac Date: Thu, 8 Dec 2011 12:00:29 +0100 Subject: [PATCH] huaweicdma: Tweak plugin to notify dormant state Specify vendor in creating cdma-connman atom. Set PCUI interface as slave of MODEM interface to receive dormant state notification during data call. --- plugins/huaweicdma.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/huaweicdma.c b/plugins/huaweicdma.c index 4c83114..50b4761 100644 --- a/plugins/huaweicdma.c +++ b/plugins/huaweicdma.c @@ -38,6 +38,8 @@ #include #include +#include "drivers/atmodem/vendor.h" + struct huaweicdma_data { GAtChat *modem; GAtChat *pcui; @@ -147,6 +149,8 @@ static int huaweicdma_enable(struct ofono_modem *modem) return -EIO; } + g_at_chat_set_slave(data->modem, data->pcui); + g_at_chat_send(data->modem, "ATE0 &C0 +CMEE=1", NULL, NULL, NULL, NULL); g_at_chat_send(data->pcui, "ATE0 &C0 +CMEE=1", NULL, NULL, NULL, NULL); @@ -213,7 +217,8 @@ static void huaweicdma_post_online(struct ofono_modem *modem) ofono_cdma_netreg_create(modem, 0, "huaweicdmamodem", data->modem); - ofono_cdma_connman_create(modem, 0, "cdmamodem", data->modem); + ofono_cdma_connman_create(modem, OFONO_VENDOR_HUAWEI, "cdmamodem", + data->modem); } static struct ofono_modem_driver huaweicdma_driver = { -- 2.7.4