* [PATCH] atmodem/sms: added Gemalto vendor for CNMI command
@ 2018-10-23 8:21 Giacinto Cifelli
2018-10-23 8:29 ` Jonas Bonn
2018-10-23 14:56 ` Denis Kenzior
0 siblings, 2 replies; 5+ messages in thread
From: Giacinto Cifelli @ 2018-10-23 8:21 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 821 bytes --]
---
drivers/atmodem/sms.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c
index 7638885e..380cd763 100644
--- a/drivers/atmodem/sms.c
+++ b/drivers/atmodem/sms.c
@@ -858,8 +858,18 @@ static gboolean build_cnmi_string(char *buf, int *cnmi_opts,
data->cnma_enabled ? "21" : "1", FALSE))
return FALSE;
+ switch (data->vendor) {
+ case OFONO_VENDOR_GEMALTO:
+ mode = "0";
+ break;
+ default:
+ /* Sounds like 2 is the sanest mode */
+ mode = "20";
+ break;
+ }
+
/* Always deliver CB via +CBM, otherwise don't deliver at all */
- if (!append_cnmi_element(buf, &len, cnmi_opts[2], "20", FALSE))
+ if (!append_cnmi_element(buf, &len, cnmi_opts[2], mode, FALSE))
return FALSE;
/*
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] atmodem/sms: added Gemalto vendor for CNMI command
2018-10-23 8:21 [PATCH] atmodem/sms: added Gemalto vendor for CNMI command Giacinto Cifelli
@ 2018-10-23 8:29 ` Jonas Bonn
2018-10-23 8:32 ` Giacinto Cifelli
2018-10-23 14:56 ` Denis Kenzior
1 sibling, 1 reply; 5+ messages in thread
From: Jonas Bonn @ 2018-10-23 8:29 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]
Hi,
On 23/10/18 10:21, Giacinto Cifelli wrote:
> ---
> drivers/atmodem/sms.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c
> index 7638885e..380cd763 100644
> --- a/drivers/atmodem/sms.c
> +++ b/drivers/atmodem/sms.c
> @@ -858,8 +858,18 @@ static gboolean build_cnmi_string(char *buf, int *cnmi_opts,
> data->cnma_enabled ? "21" : "1", FALSE))
> return FALSE;
>
> + switch (data->vendor) {
> + case OFONO_VENDOR_GEMALTO:
> + mode = "0";
> + break;
> + default:
> + /* Sounds like 2 is the sanest mode */
This particular comment doesn't add anything useful so just drop it.
/Jonas
> + mode = "20";
> + break;
> + }
> +
> /* Always deliver CB via +CBM, otherwise don't deliver at all */
> - if (!append_cnmi_element(buf, &len, cnmi_opts[2], "20", FALSE))
> + if (!append_cnmi_element(buf, &len, cnmi_opts[2], mode, FALSE))
> return FALSE;
>
> /*
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] atmodem/sms: added Gemalto vendor for CNMI command
2018-10-23 8:29 ` Jonas Bonn
@ 2018-10-23 8:32 ` Giacinto Cifelli
2018-10-23 8:43 ` Jonas Bonn
0 siblings, 1 reply; 5+ messages in thread
From: Giacinto Cifelli @ 2018-10-23 8:32 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1173 bytes --]
Hi,
On Tue, Oct 23, 2018 at 10:29 AM Jonas Bonn <jonas@norrbonn.se> wrote:
>
> Hi,
>
> On 23/10/18 10:21, Giacinto Cifelli wrote:
> > ---
> > drivers/atmodem/sms.c | 12 +++++++++++-
> > 1 file changed, 11 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c
> > index 7638885e..380cd763 100644
> > --- a/drivers/atmodem/sms.c
> > +++ b/drivers/atmodem/sms.c
> > @@ -858,8 +858,18 @@ static gboolean build_cnmi_string(char *buf, int *cnmi_opts,
> > data->cnma_enabled ? "21" : "1", FALSE))
> > return FALSE;
> >
> > + switch (data->vendor) {
> > + case OFONO_VENDOR_GEMALTO:
> > + mode = "0";
> > + break;
> > + default:
> > + /* Sounds like 2 is the sanest mode */
>
> This particular comment doesn't add anything useful so just drop it.
Not mine... I didn't want my patch rejected because I changed 2 things
at the same time (add vendor and remove comment).
From the choice of word (sane), I think this comment is from Denis.
without even checking with git blame.
>
> /Jonas
Giacinto
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] atmodem/sms: added Gemalto vendor for CNMI command
2018-10-23 8:32 ` Giacinto Cifelli
@ 2018-10-23 8:43 ` Jonas Bonn
0 siblings, 0 replies; 5+ messages in thread
From: Jonas Bonn @ 2018-10-23 8:43 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 572 bytes --]
On 23/10/18 10:32, Giacinto Cifelli wrote:
> Hi,
>
> On Tue, Oct 23, 2018 at 10:29 AM Jonas Bonn <jonas@norrbonn.se> wrote:
> + break;
>>> + default:
>>> + /* Sounds like 2 is the sanest mode */
>>
>> This particular comment doesn't add anything useful so just drop it.
>
> Not mine... I didn't want my patch rejected because I changed 2 things
> at the same time (add vendor and remove comment).
> From the choice of word (sane), I think this comment is from Denis.
> without even checking with git blame.
:)
/Jonas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] atmodem/sms: added Gemalto vendor for CNMI command
2018-10-23 8:21 [PATCH] atmodem/sms: added Gemalto vendor for CNMI command Giacinto Cifelli
2018-10-23 8:29 ` Jonas Bonn
@ 2018-10-23 14:56 ` Denis Kenzior
1 sibling, 0 replies; 5+ messages in thread
From: Denis Kenzior @ 2018-10-23 14:56 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 216 bytes --]
Hi Giacinto,
On 10/23/2018 03:21 AM, Giacinto Cifelli wrote:
> ---
> drivers/atmodem/sms.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
Applied, thanks.
Regards,
-denis
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-10-23 14:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-23 8:21 [PATCH] atmodem/sms: added Gemalto vendor for CNMI command Giacinto Cifelli
2018-10-23 8:29 ` Jonas Bonn
2018-10-23 8:32 ` Giacinto Cifelli
2018-10-23 8:43 ` Jonas Bonn
2018-10-23 14:56 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.