diff options
author | Guillaume Zajac <guillaume.zajac@linux.intel.com> | 2011-12-08 12:00:29 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-12-08 06:23:28 -0600 |
commit | aa917e5be11db89fbc84fb1d7f3e6ea58e1ac224 (patch) | |
tree | 38120642ef1b4a3cb0a6a2e0acc448910ef6d196 | |
parent | 801f97ddf64b51fb6ca8608c6ce2ee9ea887b349 (diff) | |
download | ofono-aa917e5be11db89fbc84fb1d7f3e6ea58e1ac224.tar.bz2 |
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.
-rw-r--r-- | plugins/huaweicdma.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/huaweicdma.c b/plugins/huaweicdma.c index 4c831143..50b47615 100644 --- a/plugins/huaweicdma.c +++ b/plugins/huaweicdma.c @@ -38,6 +38,8 @@ #include <ofono/cdma-connman.h> #include <ofono/log.h> +#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 = { |