From 7e01bef1b47f8a27cae4e3af700713382c3abcd9 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 16 Aug 2010 15:28:31 +0200 Subject: [PATCH] zte: Add support for sms, cbs, ussd and phonebook atoms --- plugins/zte.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/zte.c b/plugins/zte.c index d0cbf3e..40b9b29 100644 --- a/plugins/zte.c +++ b/plugins/zte.c @@ -37,6 +37,10 @@ #include #include #include +#include +#include +#include +#include #include #include @@ -149,7 +153,8 @@ static int zte_enable(struct ofono_modem *modem) return -EIO; } - g_at_chat_send(data->aux, "ATE0 +CMEE=1", none_prefix, NULL, NULL, NULL); + g_at_chat_send(data->aux, "ATE0 +CMEE=1", none_prefix, + NULL, NULL, NULL); g_at_chat_send(data->aux, "AT+CFUN=1", none_prefix, cfun_enable, modem, NULL); @@ -216,6 +221,13 @@ static void zte_post_sim(struct ofono_modem *modem) DBG("%p", modem); ofono_netreg_create(modem, OFONO_VENDOR_ZTE, "atmodem", data->aux); + + ofono_sms_create(modem, OFONO_VENDOR_QUALCOMM_MSM, + "atmodem", data->aux); + ofono_cbs_create(modem, OFONO_VENDOR_QUALCOMM_MSM, + "atmodem", data->aux); + ofono_ussd_create(modem, 0, "atmodem", data->aux); + ofono_phonebook_create(modem, 0, "atmodem", data->aux); } static struct ofono_modem_driver zte_driver = { -- 2.7.4