From aceaac4b7b06cc64bd872c095c5aa09a2a8b329d Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Wed, 2 Sep 2009 19:35:40 -0400 Subject: 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. --- plugins/g1.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/g1.c') 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 #include +#include + /* 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); -- cgit v1.2.3