diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-10-02 13:23:26 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-10-02 13:23:26 +0200 |
commit | 32ffbf915e3813474488f604d7d40c21c08a37a9 (patch) | |
tree | 5e976dbea81f369d77235c0b64e4e786109cffac | |
parent | 0ebadcee45610266e069de538e5ceb1d0b1399e6 (diff) | |
download | ofono-32ffbf915e3813474488f604d7d40c21c08a37a9.tar.bz2 |
Enable a few extra atoms in the Huawei plugin
-rw-r--r-- | plugins/huawei.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c index 17548460..94a42fb1 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -36,9 +36,13 @@ #include <ofono/modem.h> #include <ofono/devinfo.h> #include <ofono/netreg.h> +#include <ofono/sim.h> #include <ofono/sms.h> +#include <ofono/voicecall.h> #include <ofono/log.h> +#include <drivers/atmodem/vendor.h> + struct huawei_data { GAtChat *chat; }; @@ -112,6 +116,8 @@ static int huawei_enable(struct ofono_modem *modem) if (getenv("OFONO_AT_DEBUG")) g_at_chat_set_debug(data->chat, huawei_debug, NULL); + g_at_chat_send(data->chat, "ATE0", NULL, NULL, NULL, NULL); + g_at_chat_send(data->chat, "AT+CFUN=1", NULL, cfun_enable, modem, NULL); @@ -155,6 +161,8 @@ static void huawei_pre_sim(struct ofono_modem *modem) DBG("%p", modem); ofono_devinfo_create(modem, 0, "atmodem", data->chat); + ofono_sim_create(modem, 0, "atmodem", data->chat); + ofono_voicecall_create(modem, 0, "atmodem", data->chat); } static void huawei_post_sim(struct ofono_modem *modem) @@ -164,6 +172,7 @@ static void huawei_post_sim(struct ofono_modem *modem) DBG("%p", modem); ofono_netreg_create(modem, 0, "atmodem", data->chat); + ofono_sms_create(modem, OFONO_VENDOR_HTC_G1, "atmodem", data->chat); } static struct ofono_modem_driver huawei_driver = { |