From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH 3/3] Add SMS support for Palm Pre with a vendor quirk
Date: Tue, 10 Nov 2009 09:17:27 +0100 [thread overview]
Message-ID: <1257841047.3024.15.camel@violet> (raw)
In-Reply-To: <1257834639-22467-1-git-send-email-andrew.zaborowski@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1718 bytes --]
Hi Andrzej,
> drivers/atmodem/sms.c | 7 ++++---
> plugins/palmpre.c | 2 ++
> 2 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c
> index b3d6ff5..20ab47a 100644
> --- a/drivers/atmodem/sms.c
> +++ b/drivers/atmodem/sms.c
> @@ -680,9 +680,10 @@ static gboolean build_cnmi_string(char *buf, int *cnmi_opts,
> const char *mode;
> int len = sprintf(buf, "AT+CNMI=");
>
> - if (data->vendor == OFONO_VENDOR_HTC_G1)
> - /* The G1 advertises support for mode 2, but returns an error
> - * if we attempt to actually use it. */
> + if (data->vendor == OFONO_VENDOR_HTC_G1 ||
> + data->vendor == OFONO_VENDOR_MSM)
> + /* These devices advertise support for mode 2, but return
> + * an error if we attempt to actually use it. */
> mode = "1";
> else
> /* Sounds like 2 is the sanest mode */
> diff --git a/plugins/palmpre.c b/plugins/palmpre.c
> index 37cb7b6..12add93 100644
> --- a/plugins/palmpre.c
> +++ b/plugins/palmpre.c
> @@ -42,6 +42,7 @@
> #include <ofono/voicecall.h>
> #include <ofono/gprs.h>
> #include <ofono/gprs-context.h>
> +#include <ofono/sms.h>
>
> #include <drivers/atmodem/vendor.h>
>
> @@ -182,6 +183,7 @@ static void palmpre_post_sim(struct ofono_modem *modem)
> DBG("%p", modem);
>
> ofono_netreg_create(modem, 0, "atmodem", data->chat);
> + ofono_sms_create(modem, OFONO_VENDOR_MSM, "atmodem", data->chat);
just use OFONO_VENDOR_HTC_G1 here. There is no point in using a quirk
name twice. And yes, at some point we find better names for it, but
right now we need more data and the brokeness of modems to worry too
much.
Regards
Marcel
prev parent reply other threads:[~2009-11-10 8:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-10 6:30 [PATCH 3/3] Add SMS support for Palm Pre with a vendor quirk Andrzej Zaborowski
2009-11-10 8:17 ` Marcel Holtmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1257841047.3024.15.camel@violet \
--to=marcel@holtmann.org \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox