Merge lp:~sergiusens/phablet-extras/ofono into lp:phablet-extras/ofono

Proposed by Sergio Schvezov
Status: Merged
Approved by: Ricardo Salveti
Approved revision: no longer in the source branch.
Merged at revision: 33
Proposed branch: lp:~sergiusens/phablet-extras/ofono
Merge into: lp:phablet-extras/ofono
Diff against target: 51 lines (+16/-3)
2 files modified
debian/changelog (+4/-0)
drivers/rilmodem/sms.c (+12/-3)
To merge this branch: bzr merge lp:~sergiusens/phablet-extras/ofono
Reviewer Review Type Date Requested Status
Ricardo Salveti (community) Approve
PS Jenkins bot continuous-integration Approve
Tony Espy Approve
Review via email: mp+165943@code.launchpad.net

Commit message

[ril/rilmodem] Using pdu field to figure out SMSC length (LP: #1090437).

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Tony Espy (awe) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Good.

review: Approve
lp:~sergiusens/phablet-extras/ofono updated
33. By Sergio Schvezov

[ril/rilmodem] Using pdu field to figure out SMSC length (LP: #1090437). Fixes: https://bugs.launchpad.net/bugs/1090437.

Approved by Ricardo Salveti, PS Jenkins bot, Tony Espy.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-04-16 17:59:50 +0000
+++ debian/changelog 2013-05-28 16:58:26 +0000
@@ -1,9 +1,13 @@
1ofono (1.12phablet2) UNRELEASED; urgency=low1ofono (1.12phablet2) UNRELEASED; urgency=low
22
3 [ Tony Espy ]
3 * [ril/rilmodem] Initial SIM support, includes:4 * [ril/rilmodem] Initial SIM support, includes:
4 - read filesystem support5 - read filesystem support
5 - proper modem initialization6 - proper modem initialization
67
8 [ Sergio Schvezov ]
9 * [ril/rilmodem] Using pdu field to figure out SMSC length (LP: #1090437).
10
7 -- Tony Espy <espy@canonical.com> Fri, 12 Apr 2013 14:56:01 -040011 -- Tony Espy <espy@canonical.com> Fri, 12 Apr 2013 14:56:01 -0400
812
9ofono (1.12phablet1) raring; urgency=low13ofono (1.12phablet1) raring; urgency=low
1014
=== modified file 'drivers/rilmodem/sms.c'
--- drivers/rilmodem/sms.c 2013-04-11 19:31:21 +0000
+++ drivers/rilmodem/sms.c 2013-05-28 16:58:26 +0000
@@ -218,6 +218,7 @@
218 struct parcel rilp;218 struct parcel rilp;
219 char *ril_pdu;219 char *ril_pdu;
220 int ril_pdu_len;220 int ril_pdu_len;
221 unsigned int smsc_len;
221 long ril_buf_len;222 long ril_buf_len;
222 guchar *ril_data;223 guchar *ril_data;
223224
@@ -251,10 +252,18 @@
251 sms_debug,252 sms_debug,
252 "sms-notify-decoded: ");253 "sms-notify-decoded: ");
253254
255 /* The first octect in the pdu contains the SMSC address length
256 * which is the X following octects it reads. We add 1 octet to
257 * the read length to take into account this read octet in order
258 * to calculate the proper tpdu length.
259 */
260 smsc_len = ril_data[0] + 1;
261 DBG("smsc_len is %d", smsc_len);
262
254 /* Last parameter is 'tpdu_len' ( substract SMSC length ) */263 /* Last parameter is 'tpdu_len' ( substract SMSC length ) */
255 ofono_sms_deliver_notify(sms, ril_data,264 ofono_sms_deliver_notify(sms, ril_data,
256 ril_buf_len,265 ril_buf_len,
257 ril_buf_len - 8);266 ril_buf_len - smsc_len);
258267
259 /* Re-use rilp, so initilize */268 /* Re-use rilp, so initilize */
260 parcel_init(&rilp);269 parcel_init(&rilp);

Subscribers

People subscribed via source and target branches