summaryrefslogtreecommitdiffstats
path: root/plugins/g1.c
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@collabora.co.uk>2009-09-02 19:35:40 -0400
committerMarcel Holtmann <marcel@holtmann.org>2009-09-02 19:06:03 -0700
commitaceaac4b7b06cc64bd872c095c5aa09a2a8b329d (patch)
treefbf1208d2e80af24856f276f9004aefcba36fab6 /plugins/g1.c
parent3bb7fbd5d5779f267ce248504592e64f9da18629 (diff)
downloadofono-aceaac4b7b06cc64bd872c095c5aa09a2a8b329d.tar.bz2
G1: Add an SMS quirk for CNMI mode
The G1 doesn't support mode2, despite advertising it. The G1 chokes w/ an "Error 303" when we specify NMI mode 2. Adding a quirk to drop that mode from the supported list (just use mode 1) allows the G1 to properly deal with SMS.
Diffstat (limited to 'plugins/g1.c')
-rw-r--r--plugins/g1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/g1.c b/plugins/g1.c
index 30b9f949..c5155757 100644
--- a/plugins/g1.c
+++ b/plugins/g1.c
@@ -47,6 +47,8 @@
#include <ofono/ussd.h>
#include <ofono/voicecall.h>
+#include <drivers/atmodem/vendor.h>
+
/* Supply our own syntax parser */
enum G1_STATE_ {
@@ -234,6 +236,7 @@ static void g1_populate(struct ofono_modem *modem)
ofono_call_meter_create(modem, 0, "atmodem", chat);
ofono_call_barring_create(modem, 0, "atmodem", chat);
ofono_ssn_create(modem, 0, "atmodem", chat);
+ ofono_sms_create(modem, OFONO_VENDOR_HTC_G1, "atmodem", chat);
ofono_phonebook_create(modem, 0, "atmodem", chat);
mw = ofono_message_waiting_create(modem);