From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 2/3] stk: Handle provide local info proactive command
Date: Mon, 29 Nov 2010 07:47:26 -0600 [thread overview]
Message-ID: <4CF3AEEE.6090808@gmail.com> (raw)
In-Reply-To: <CE761E84DADF2947A4AF22FB8D97A473306DF4B0@shsmsx501.ccr.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1458 bytes --]
Hi Yang,
On 11/28/2010 08:47 PM, Gu, Yang wrote:
> Hi Denis,
>
>>> diff --git a/src/smsutil.c b/src/smsutil.c
>>> index e6dbf5f..5394817 100644
>>> --- a/src/smsutil.c
>>> +++ b/src/smsutil.c
>>> @@ -324,10 +324,10 @@ gboolean sms_encode_scts(const struct sms_scts *in,
>> unsigned char *pdu,
>>> if (in->year > 99)
>>> return FALSE;
>>>
>>> - if (in->month > 12)
>>> + if (in->month > 12 || in->month == 0)
>>> return FALSE;
>>>
>>> - if (in->day > 31)
>>> + if (in->day > 31 || in->day == 0)
>>> return FALSE;
>>>
>>> if (in->hour > 23)
>>> @@ -339,7 +339,7 @@ gboolean sms_encode_scts(const struct sms_scts *in,
>> unsigned char *pdu,
>>> if (in->second > 59)
>>> return FALSE;
>>>
>>> - if ((in->timezone > 12*4-1) || (in->timezone < -(12*4-1)))
>>> + if ((in->timezone > 12*4) || (in->timezone < -(12*4-1)))
>>
>> Err, why would +48 be valid?
>
> I think all the timezone should be a circle (24 hours). If it can't be -48, it needs to contain +48.
> Also please see 9.2.6.9 in http://gsm-history.org/fileadmin/user_upload/Key_SMS_Documents/GSM_Rec_03.40_v_2.2.0.pdf, which says "The Time Zone may be a number in the range -47 to +48".
>
Ok, fair enough. Though do note that the timezone field must account
for daylight savings time. So in theory GMT+14 and GMT-12 are valid
timezone values as well. See
http://en.wikipedia.org/wiki/List_of_time_zones_by_UTC_offset
Regards,
-Denis
next prev parent reply other threads:[~2010-11-29 13:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-25 12:28 [PATCH 0/3] Patch Description Yang Gu
2010-11-25 12:29 ` [PATCH 1/3] network: Use bit as size instead of byte Yang Gu
2010-11-26 20:02 ` Denis Kenzior
2010-11-25 12:29 ` [PATCH 2/3] stk: Handle provide local info proactive command Yang Gu
2010-11-25 23:36 ` andrzej zaborowski
2010-11-26 20:49 ` Denis Kenzior
2010-11-29 2:47 ` Gu, Yang
2010-11-29 13:47 ` Denis Kenzior [this message]
2010-11-25 12:29 ` [PATCH 3/3] test-stk: Add provide local info Yang Gu
2010-11-25 23:25 ` [PATCH 0/3] Patch Description andrzej zaborowski
2010-11-26 3:29 ` Gu, Yang
2010-11-26 20:44 ` Denis Kenzior
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=4CF3AEEE.6090808@gmail.com \
--to=denkenz@gmail.com \
--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