summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-06-03 08:57:16 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-06-03 08:57:16 -0700
commit9b6ec94b2108627d8486162bd4a19c9b91765d1f (patch)
treeedfe9f0d06e8cabce8039c38e058ced9778254a6
parent23d97f2c0a5b0ef89d69e92184c4669e31e89dbe (diff)
downloadofono-9b6ec94b2108627d8486162bd4a19c9b91765d1f.tar.bz2
Enable SMS support for Novatel based devices
The important part here is that the SMS atom needs to be on the second AT command port since the main port doesn't handle sending correctly. It never returns any success or error after the submission of the PDU.
-rw-r--r--plugins/novatel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/novatel.c b/plugins/novatel.c
index a1c3e51f..65e0024c 100644
--- a/plugins/novatel.c
+++ b/plugins/novatel.c
@@ -37,6 +37,7 @@
#include <ofono/devinfo.h>
#include <ofono/netreg.h>
#include <ofono/sim.h>
+#include <ofono/sms.h>
#include <ofono/gprs.h>
#include <ofono/gprs-context.h>
#include <ofono/log.h>
@@ -293,6 +294,8 @@ static void novatel_post_sim(struct ofono_modem *modem)
g_at_chat_send(data->gprs, "ATE0 +CMEE=1", none_prefix,
NULL, NULL, NULL);
+ ofono_sms_create(modem, OFONO_VENDOR_NOVATEL, "atmodem", data->gprs);
+
gprs = ofono_gprs_create(modem, 0, "atmodem", data->gprs);
gc = ofono_gprs_context_create(modem, 0, "atmodem", data->gprs);