Merge lp:~phablet-team/ofono/lp1598181 into lp:~phablet-team/ofono/ubuntu

Proposed by Alfonso Sanchez-Beato
Status: Merged
Approved by: Tony Espy
Approved revision: 6924
Merged at revision: 6920
Proposed branch: lp:~phablet-team/ofono/lp1598181
Merge into: lp:~phablet-team/ofono/ubuntu
Diff against target: 683 lines (+226/-266)
9 files modified
debian/changelog (+6/-0)
drivers/isimodem/voicecall.c (+1/-1)
drivers/rilmodem/network-registration.c (+13/-13)
gril/grilreply.c (+2/-9)
plugins/nokia-gpio.c (+2/-7)
unit/test-rilmodem-cb.c (+63/-63)
unit/test-rilmodem-cs.c (+61/-61)
unit/test-rilmodem-sms.c (+78/-78)
unit/test-stkutil.c (+0/-34)
To merge this branch: bzr merge lp:~phablet-team/ofono/lp1598181
Reviewer Review Type Date Requested Status
Tony Espy Approve
Konrad Zapałowicz (community) code Approve
Review via email: mp+303369@code.launchpad.net

Description of the change

Fix network name parsing for turbo (LP: #1598181)

To post a comment you must log in.
Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

LGTM

review: Approve (code)
lp:~phablet-team/ofono/lp1598181 updated
6921. By Alfonso Sanchez-Beato

Fix unit test

6922. By Alfonso Sanchez-Beato

Fix compilation with gcc 6

6923. By Alfonso Sanchez-Beato

Fix glibc 2.23.9+ issues

6924. By Alfonso Sanchez-Beato

Fix gcc 6.0 compilation on big endian archs

Revision history for this message
Tony Espy (awe) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2016-07-19 15:39:18 +0000
+++ debian/changelog 2016-08-19 11:05:27 +0000
@@ -1,3 +1,9 @@
1ofono (1.17.bzr6921+16.10.20160819.1-0ubuntu1) UNRELEASED; urgency=medium
2
3 * Fix network name parsing for turbo (LP: #1598181)
4
5 -- Alfonso Sanchez-Beato (email Canonical) <alfonso.sanchez-beato@canonical.com> Fri, 19 Aug 2016 08:46:21 +0200
6
1ofono (1.17.bzr6919+16.10.20160719.1-0ubuntu1) yakkety; urgency=medium7ofono (1.17.bzr6919+16.10.20160719.1-0ubuntu1) yakkety; urgency=medium
28
3 [ Alfonso Sanchez-Beato ]9 [ Alfonso Sanchez-Beato ]
410
=== modified file 'drivers/isimodem/voicecall.c'
--- drivers/isimodem/voicecall.c 2012-09-12 04:30:25 +0000
+++ drivers/isimodem/voicecall.c 2016-08-19 11:05:27 +0000
@@ -1715,7 +1715,7 @@
17151715
1716 if ((status->mode_info & CALL_MODE_ORIGINATOR))1716 if ((status->mode_info & CALL_MODE_ORIGINATOR))
1717 cause = CALL_CAUSE_BUSY_USER_REQUEST;1717 cause = CALL_CAUSE_BUSY_USER_REQUEST;
1718 break;1718 break;
1719 }1719 }
17201720
1721 isi_call_release_req(ovc, id, CALL_CAUSE_TYPE_CLIENT, cause, cb, data);1721 isi_call_release_req(ovc, id, CALL_CAUSE_TYPE_CLIENT, cause, cb, data);
17221722
=== modified file 'drivers/rilmodem/network-registration.c'
--- drivers/rilmodem/network-registration.c 2016-06-15 14:10:26 +0000
+++ drivers/rilmodem/network-registration.c 2016-08-19 11:05:27 +0000
@@ -201,26 +201,26 @@
201static void set_oper_name(const struct reply_operator *reply,201static void set_oper_name(const struct reply_operator *reply,
202 struct ofono_network_operator *op)202 struct ofono_network_operator *op)
203{203{
204 const char *spn = NULL;204 if (reply->lalpha != NULL &&
205 g_strcmp0(reply->numeric, reply->lalpha) != 0) {
206 strncpy(op->name, reply->lalpha,
207 OFONO_MAX_OPERATOR_NAME_LENGTH);
208 } else if (reply->salpha != NULL &&
209 g_strcmp0(reply->numeric, reply->salpha) != 0) {
210 strncpy(op->name, reply->salpha,
211 OFONO_MAX_OPERATOR_NAME_LENGTH);
212 } else {
213 const char *spn = NULL;
205214
206 /* Use SPN list if we do not have name */
207 if (strcmp(reply->numeric, reply->lalpha) == 0) {
208 spn = __ofono_spn_table_get_spn(reply->numeric);215 spn = __ofono_spn_table_get_spn(reply->numeric);
209 if (spn != NULL) {216 if (spn != NULL) {
210 DBG("using spn override %s", spn);217 DBG("using spn override %s", spn);
211 strncpy(op->name, spn, OFONO_MAX_OPERATOR_NAME_LENGTH);218 strncpy(op->name, spn, OFONO_MAX_OPERATOR_NAME_LENGTH);
219 } else {
220 strncpy(op->name, reply->numeric,
221 OFONO_MAX_OPERATOR_NAME_LENGTH);
212 }222 }
213 }223 }
214
215 if (spn == NULL) {
216 /* Try to use long by default */
217 if (reply->lalpha)
218 strncpy(op->name, reply->lalpha,
219 OFONO_MAX_OPERATOR_NAME_LENGTH);
220 else if (reply->salpha)
221 strncpy(op->name, reply->salpha,
222 OFONO_MAX_OPERATOR_NAME_LENGTH);
223 }
224}224}
225225
226static void ril_cops_cb(struct ril_msg *message, gpointer user_data)226static void ril_cops_cb(struct ril_msg *message, gpointer user_data)
227227
=== modified file 'gril/grilreply.c'
--- gril/grilreply.c 2016-07-19 15:08:32 +0000
+++ gril/grilreply.c 2016-08-19 11:05:27 +0000
@@ -248,14 +248,6 @@
248 reply->salpha = parcel_r_string(&rilp);248 reply->salpha = parcel_r_string(&rilp);
249 reply->numeric = parcel_r_string(&rilp);249 reply->numeric = parcel_r_string(&rilp);
250250
251 if (reply->lalpha == NULL && reply->salpha == NULL) {
252 ofono_error("%s: invalid OPERATOR reply: "
253 " no names returned.",
254 __func__);
255
256 goto error;
257 }
258
259 if (reply->numeric == NULL) {251 if (reply->numeric == NULL) {
260 ofono_error("%s: invalid OPERATOR reply: "252 ofono_error("%s: invalid OPERATOR reply: "
261 " no numeric returned.",253 " no numeric returned.",
@@ -265,7 +257,8 @@
265257
266 g_ril_append_print_buf(gril,258 g_ril_append_print_buf(gril,
267 "(lalpha=%s, salpha=%s, numeric=%s)",259 "(lalpha=%s, salpha=%s, numeric=%s)",
268 reply->lalpha, reply->salpha, reply->numeric);260 PRINTABLE_STR(reply->lalpha),
261 PRINTABLE_STR(reply->salpha), reply->numeric);
269262
270 g_ril_print_response(gril, message);263 g_ril_print_response(gril, message);
271264
272265
=== modified file 'plugins/nokia-gpio.c'
--- plugins/nokia-gpio.c 2011-05-11 18:29:33 +0000
+++ plugins/nokia-gpio.c 2016-08-19 11:05:27 +0000
@@ -635,7 +635,7 @@
635 char const *gpiodir = "/sys/class/gpio";635 char const *gpiodir = "/sys/class/gpio";
636 char const *cmtdir = "/dev/cmt";636 char const *cmtdir = "/dev/cmt";
637 DIR *gpio;637 DIR *gpio;
638 struct dirent *d, entry[1];638 struct dirent *d;
639639
640 if (file_exists(cmtdir)) {640 if (file_exists(cmtdir)) {
641 DBG("Using %s", cmtdir);641 DBG("Using %s", cmtdir);
@@ -657,16 +657,11 @@
657 return -(errno = ENODEV);657 return -(errno = ENODEV);
658 }658 }
659659
660 while (readdir_r(gpio, entry, &d) == 0) {660 while ((d = readdir(gpio)) != NULL) {
661 char nn[PATH_MAX], name[PATH_MAX], from[PATH_MAX], to[PATH_MAX];661 char nn[PATH_MAX], name[PATH_MAX], from[PATH_MAX], to[PATH_MAX];
662 FILE *nf;662 FILE *nf;
663 size_t len;663 size_t len;
664664
665 if (d == NULL) {
666 (void) closedir(gpio);
667 return 0;
668 }
669
670 snprintf(nn, sizeof nn, "%s/%s/name", gpiodir, d->d_name);665 snprintf(nn, sizeof nn, "%s/%s/name", gpiodir, d->d_name);
671666
672 nf = fopen(nn, "rb");667 nf = fopen(nn, "rb");
673668
=== modified file 'unit/test-rilmodem-cb.c'
--- unit/test-rilmodem-cb.c 2016-03-10 10:48:53 +0000
+++ unit/test-rilmodem-cb.c 2016-08-19 11:05:27 +0000
@@ -42,10 +42,6 @@
42#include "ril_constants.h"42#include "ril_constants.h"
43#include "rilmodem-test-server.h"43#include "rilmodem-test-server.h"
4444
45static GMainLoop *mainloop;
46
47static const struct ofono_call_barring_driver *cbdriver;
48
49struct rilmodem_cb_data {45struct rilmodem_cb_data {
50 GRil *ril;46 GRil *ril;
51 struct ofono_modem *modem;47 struct ofono_modem *modem;
@@ -71,6 +67,68 @@
71 int status;67 int status;
72};68};
7369
70static const struct ofono_call_barring_driver *cbdriver;
71
72/* Declarations && Re-implementations of core functions. */
73void ril_call_barring_exit(void);
74void ril_call_barring_init(void);
75
76struct ofono_call_barring {
77 void *driver_data;
78 const struct cb_data *cbd;
79};
80
81struct ofono_call_barring *ofono_call_barring_create(struct ofono_modem *modem,
82 unsigned int vendor,
83 const char *driver,
84 void *data)
85{
86 struct rilmodem_cb_data *rsd = data;
87 struct ofono_call_barring *cb = g_new0(struct ofono_call_barring, 1);
88 int retval;
89
90 retval = cbdriver->probe(cb, OFONO_RIL_VENDOR_AOSP, rsd->ril);
91 g_assert(retval == 0);
92
93 return cb;
94}
95
96int ofono_call_barring_driver_register(const struct ofono_call_barring_driver *d)
97{
98 if (cbdriver == NULL)
99 cbdriver = d;
100
101 return 0;
102}
103
104void ofono_call_barring_set_data(struct ofono_call_barring *cb, void *data)
105{
106 cb->driver_data = data;
107}
108
109void *ofono_call_barring_get_data(struct ofono_call_barring *cb)
110{
111 return cb->driver_data;
112}
113
114void ofono_call_barring_register(struct ofono_call_barring *cb)
115{
116}
117
118void ofono_call_barring_driver_unregister(const struct ofono_call_barring_driver *d)
119{
120}
121
122/*
123 * As all our architectures are little-endian except for
124 * PowerPC, and the Binder wire-format differs slightly
125 * depending on endian-ness, the following guards against test
126 * failures when run on PowerPC.
127 */
128#if BYTE_ORDER == LITTLE_ENDIAN
129
130static GMainLoop *mainloop;
131
74static void query_callback(const struct ofono_error *error, int status,132static void query_callback(const struct ofono_error *error, int status,
75 gpointer data)133 gpointer data)
76{134{
@@ -434,64 +492,6 @@
434 .error_type = OFONO_ERROR_TYPE_FAILURE,492 .error_type = OFONO_ERROR_TYPE_FAILURE,
435};493};
436494
437/* Declarations && Re-implementations of core functions. */
438void ril_call_barring_exit(void);
439void ril_call_barring_init(void);
440
441struct ofono_call_barring {
442 void *driver_data;
443 const struct cb_data *cbd;
444};
445
446struct ofono_call_barring *ofono_call_barring_create(struct ofono_modem *modem,
447 unsigned int vendor,
448 const char *driver,
449 void *data)
450{
451 struct rilmodem_cb_data *rsd = data;
452 struct ofono_call_barring *cb = g_new0(struct ofono_call_barring, 1);
453 int retval;
454
455 retval = cbdriver->probe(cb, OFONO_RIL_VENDOR_AOSP, rsd->ril);
456 g_assert(retval == 0);
457
458 return cb;
459}
460
461int ofono_call_barring_driver_register(const struct ofono_call_barring_driver *d)
462{
463 if (cbdriver == NULL)
464 cbdriver = d;
465
466 return 0;
467}
468
469void ofono_call_barring_set_data(struct ofono_call_barring *cb, void *data)
470{
471 cb->driver_data = data;
472}
473
474void *ofono_call_barring_get_data(struct ofono_call_barring *cb)
475{
476 return cb->driver_data;
477}
478
479void ofono_call_barring_register(struct ofono_call_barring *cb)
480{
481}
482
483void ofono_call_barring_driver_unregister(const struct ofono_call_barring_driver *d)
484{
485}
486
487/*
488 * As all our architectures are little-endian except for
489 * PowerPC, and the Binder wire-format differs slightly
490 * depending on endian-ness, the following guards against test
491 * failures when run on PowerPC.
492 */
493#if BYTE_ORDER == LITTLE_ENDIAN
494
495static void server_connect_cb(gpointer data)495static void server_connect_cb(gpointer data)
496{496{
497 struct rilmodem_cb_data *rsd = data;497 struct rilmodem_cb_data *rsd = data;
@@ -577,7 +577,7 @@
577 &testdata_query_invalid_3,577 &testdata_query_invalid_3,
578 test_call_barring_func);578 test_call_barring_func);
579 g_test_add_data_func("/testrilmodemcallbarring/query/invalid/4",579 g_test_add_data_func("/testrilmodemcallbarring/query/invalid/4",
580 &testdata_query_invalid_3,580 &testdata_query_invalid_4,
581 test_call_barring_func);581 test_call_barring_func);
582 g_test_add_data_func("/testrilmodemcallbarring/set/valid/1",582 g_test_add_data_func("/testrilmodemcallbarring/set/valid/1",
583 &testdata_set_valid_1,583 &testdata_set_valid_1,
584584
=== modified file 'unit/test-rilmodem-cs.c'
--- unit/test-rilmodem-cs.c 2016-03-10 10:48:53 +0000
+++ unit/test-rilmodem-cs.c 2016-08-19 11:05:27 +0000
@@ -42,10 +42,6 @@
42#include "ril_constants.h"42#include "ril_constants.h"
43#include "rilmodem-test-server.h"43#include "rilmodem-test-server.h"
4444
45static GMainLoop *mainloop;
46
47static const struct ofono_call_settings_driver *csdriver;
48
49struct rilmodem_cs_data {45struct rilmodem_cs_data {
50 GRil *ril;46 GRil *ril;
51 struct ofono_modem *modem;47 struct ofono_modem *modem;
@@ -67,6 +63,67 @@
67 gint cb_int2;63 gint cb_int2;
68};64};
6965
66static const struct ofono_call_settings_driver *csdriver;
67
68/* Declarations && Re-implementations of core functions. */
69void ril_call_settings_exit(void);
70void ril_call_settings_init(void);
71
72struct ofono_call_settings {
73 void *driver_data;
74};
75
76struct ofono_call_settings *ofono_call_settings_create(struct ofono_modem *modem,
77 unsigned int vendor,
78 const char *driver,
79 void *data)
80{
81 struct rilmodem_cs_data *rcd = data;
82 struct ofono_call_settings *cs = g_new0(struct ofono_call_settings, 1);
83 int retval;
84
85 retval = csdriver->probe(cs, OFONO_RIL_VENDOR_AOSP, rcd->ril);
86 g_assert(retval == 0);
87
88 return cs;
89}
90
91int ofono_call_settings_driver_register(const struct ofono_call_settings_driver *d)
92{
93 if (csdriver == NULL)
94 csdriver = d;
95
96 return 0;
97}
98
99void ofono_call_settings_set_data(struct ofono_call_settings *cs, void *data)
100{
101 cs->driver_data = data;
102}
103
104void *ofono_call_settings_get_data(struct ofono_call_settings *cs)
105{
106 return cs->driver_data;
107}
108
109void ofono_call_settings_register(struct ofono_call_settings *cs)
110{
111}
112
113void ofono_call_settings_driver_unregister(const struct ofono_call_settings_driver *d)
114{
115}
116
117/*
118 * As all our architectures are little-endian except for
119 * PowerPC, and the Binder wire-format differs slightly
120 * depending on endian-ness, the following guards against test
121 * failures when run on PowerPC.
122 */
123#if BYTE_ORDER == LITTLE_ENDIAN
124
125static GMainLoop *mainloop;
126
70static void status_query_callback(const struct ofono_error *error, int status,127static void status_query_callback(const struct ofono_error *error, int status,
71 gpointer data)128 gpointer data)
72{129{
@@ -387,63 +444,6 @@
387 .error_type = OFONO_ERROR_TYPE_FAILURE,444 .error_type = OFONO_ERROR_TYPE_FAILURE,
388};445};
389446
390/* Declarations && Re-implementations of core functions. */
391void ril_call_settings_exit(void);
392void ril_call_settings_init(void);
393
394struct ofono_call_settings {
395 void *driver_data;
396};
397
398struct ofono_call_settings *ofono_call_settings_create(struct ofono_modem *modem,
399 unsigned int vendor,
400 const char *driver,
401 void *data)
402{
403 struct rilmodem_cs_data *rcd = data;
404 struct ofono_call_settings *cs = g_new0(struct ofono_call_settings, 1);
405 int retval;
406
407 retval = csdriver->probe(cs, OFONO_RIL_VENDOR_AOSP, rcd->ril);
408 g_assert(retval == 0);
409
410 return cs;
411}
412
413int ofono_call_settings_driver_register(const struct ofono_call_settings_driver *d)
414{
415 if (csdriver == NULL)
416 csdriver = d;
417
418 return 0;
419}
420
421void ofono_call_settings_set_data(struct ofono_call_settings *cs, void *data)
422{
423 cs->driver_data = data;
424}
425
426void *ofono_call_settings_get_data(struct ofono_call_settings *cs)
427{
428 return cs->driver_data;
429}
430
431void ofono_call_settings_register(struct ofono_call_settings *cs)
432{
433}
434
435void ofono_call_settings_driver_unregister(const struct ofono_call_settings_driver *d)
436{
437}
438
439/*
440 * As all our architectures are little-endian except for
441 * PowerPC, and the Binder wire-format differs slightly
442 * depending on endian-ness, the following guards against test
443 * failures when run on PowerPC.
444 */
445#if BYTE_ORDER == LITTLE_ENDIAN
446
447static void server_connect_cb(gpointer data)447static void server_connect_cb(gpointer data)
448{448{
449 struct rilmodem_cs_data *rcd = data;449 struct rilmodem_cs_data *rcd = data;
450450
=== modified file 'unit/test-rilmodem-sms.c'
--- unit/test-rilmodem-sms.c 2016-03-10 10:48:53 +0000
+++ unit/test-rilmodem-sms.c 2016-08-19 11:05:27 +0000
@@ -42,10 +42,6 @@
42#include "ril_constants.h"42#include "ril_constants.h"
43#include "rilmodem-test-server.h"43#include "rilmodem-test-server.h"
4444
45static GMainLoop *mainloop;
46
47static const struct ofono_sms_driver *smsdriver;
48
49struct rilmodem_sms_data {45struct rilmodem_sms_data {
50 GRil *ril;46 GRil *ril;
51 struct ofono_modem *modem;47 struct ofono_modem *modem;
@@ -71,6 +67,84 @@
71 gint mr;67 gint mr;
72};68};
7369
70static GMainLoop *mainloop;
71
72static const struct ofono_sms_driver *smsdriver;
73
74/* Declarations && Re-implementations of core functions. */
75void ril_sms_exit(void);
76void ril_sms_init(void);
77
78struct ofono_sms {
79 void *driver_data;
80 const struct sms_data *sd;
81};
82
83struct ofono_sms *ofono_sms_create(struct ofono_modem *modem,
84 unsigned int vendor,
85 const char *driver,
86 void *data)
87{
88 struct rilmodem_sms_data *rsd = data;
89 struct ofono_sms *sms = g_new0(struct ofono_sms, 1);
90 int retval;
91
92 retval = smsdriver->probe(sms, OFONO_RIL_VENDOR_AOSP, rsd->ril);
93 g_assert(retval == 0);
94
95 return sms;
96}
97
98int ofono_sms_driver_register(const struct ofono_sms_driver *d)
99{
100 if (smsdriver == NULL)
101 smsdriver = d;
102
103 return 0;
104}
105
106void ofono_sms_set_data(struct ofono_sms *sms, void *data)
107{
108 sms->driver_data = data;
109}
110
111void *ofono_sms_get_data(struct ofono_sms *sms)
112{
113 return sms->driver_data;
114}
115
116void ofono_sms_register(struct ofono_sms *sms)
117{
118}
119
120void ofono_sms_driver_unregister(const struct ofono_sms_driver *d)
121{
122}
123
124void ofono_sms_deliver_notify(struct ofono_sms *sms, const unsigned char *pdu,
125 int len, int tpdu_len)
126{
127 g_assert(sms->sd->pdu_len == len);
128 g_assert(sms->sd->tpdu_len == tpdu_len);
129 g_assert(!memcmp(pdu, sms->sd->pdu, len));
130
131 g_main_loop_quit(mainloop);
132}
133
134void ofono_sms_status_notify(struct ofono_sms *sms, const unsigned char *pdu,
135 int len, int tpdu_len)
136{
137 ofono_sms_deliver_notify(sms, pdu, len, tpdu_len);
138}
139
140/*
141 * As all our architectures are little-endian except for
142 * PowerPC, and the Binder wire-format differs slightly
143 * depending on endian-ness, the following guards against test
144 * failures when run on PowerPC.
145 */
146#if BYTE_ORDER == LITTLE_ENDIAN
147
74static void sca_query_callback(const struct ofono_error *error,148static void sca_query_callback(const struct ofono_error *error,
75 const struct ofono_phone_number *ph,149 const struct ofono_phone_number *ph,
76 gpointer data)150 gpointer data)
@@ -414,80 +488,6 @@
414 .tpdu_len = 28,488 .tpdu_len = 28,
415};489};
416490
417/* Declarations && Re-implementations of core functions. */
418void ril_sms_exit(void);
419void ril_sms_init(void);
420
421struct ofono_sms {
422 void *driver_data;
423 const struct sms_data *sd;
424};
425
426struct ofono_sms *ofono_sms_create(struct ofono_modem *modem,
427 unsigned int vendor,
428 const char *driver,
429 void *data)
430{
431 struct rilmodem_sms_data *rsd = data;
432 struct ofono_sms *sms = g_new0(struct ofono_sms, 1);
433 int retval;
434
435 retval = smsdriver->probe(sms, OFONO_RIL_VENDOR_AOSP, rsd->ril);
436 g_assert(retval == 0);
437
438 return sms;
439}
440
441int ofono_sms_driver_register(const struct ofono_sms_driver *d)
442{
443 if (smsdriver == NULL)
444 smsdriver = d;
445
446 return 0;
447}
448
449void ofono_sms_set_data(struct ofono_sms *sms, void *data)
450{
451 sms->driver_data = data;
452}
453
454void *ofono_sms_get_data(struct ofono_sms *sms)
455{
456 return sms->driver_data;
457}
458
459void ofono_sms_register(struct ofono_sms *sms)
460{
461}
462
463void ofono_sms_driver_unregister(const struct ofono_sms_driver *d)
464{
465}
466
467void ofono_sms_deliver_notify(struct ofono_sms *sms, const unsigned char *pdu,
468 int len, int tpdu_len)
469{
470 g_assert(sms->sd->pdu_len == len);
471 g_assert(sms->sd->tpdu_len == tpdu_len);
472 g_assert(!memcmp(pdu, sms->sd->pdu, len));
473
474 g_main_loop_quit(mainloop);
475}
476
477void ofono_sms_status_notify(struct ofono_sms *sms, const unsigned char *pdu,
478 int len, int tpdu_len)
479{
480 ofono_sms_deliver_notify(sms, pdu, len, tpdu_len);
481}
482
483/*
484 * As all our architectures are little-endian except for
485 * PowerPC, and the Binder wire-format differs slightly
486 * depending on endian-ness, the following guards against test
487 * failures when run on PowerPC.
488 */
489#if BYTE_ORDER == LITTLE_ENDIAN
490
491static void server_connect_cb(gpointer data)491static void server_connect_cb(gpointer data)
492{492{
493 struct rilmodem_sms_data *rsd = data;493 struct rilmodem_sms_data *rsd = data;
494494
=== modified file 'unit/test-stkutil.c'
--- unit/test-stkutil.c 2012-11-02 19:17:17 +0000
+++ unit/test-stkutil.c 2016-08-19 11:05:27 +0000
@@ -16867,13 +16867,7 @@
16867 },16867 },
16868};16868};
1686916869
16870static const unsigned char get_input_response_191b[] = {
16871 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x82,
16872 0x81, 0x83, 0x01, 0x00, 0x8d, 0x00,
16873};
16874
16875static const struct terminal_response_test get_input_response_data_191 = {16870static const struct terminal_response_test get_input_response_data_191 = {
16876 /* Either get_input_response_191a or get_input_response_191b is ok */
16877 .pdu = get_input_response_191a,16871 .pdu = get_input_response_191a,
16878 .pdu_len = sizeof(get_input_response_191a),16872 .pdu_len = sizeof(get_input_response_191a),
16879 .response = {16873 .response = {
@@ -17349,11 +17343,6 @@
17349 0x81, 0x83, 0x01, 0x00, 0x84, 0x02, 0x00, 0x01,17343 0x81, 0x83, 0x01, 0x00, 0x84, 0x02, 0x00, 0x01,
17350};17344};
1735117345
17352static const unsigned char poll_interval_response_111b[] = {
17353 0x81, 0x03, 0x01, 0x03, 0x00, 0x82, 0x02, 0x82,
17354 0x81, 0x83, 0x01, 0x00, 0x84, 0x02, 0x01, 0x3c,
17355};
17356
17357static const struct terminal_response_test poll_interval_response_data_111a = {17346static const struct terminal_response_test poll_interval_response_data_111a = {
17358 /* Either poll_interval_response_111a or b is ok */17347 /* Either poll_interval_response_111a or b is ok */
17359 .pdu = poll_interval_response_111a,17348 .pdu = poll_interval_response_111a,
@@ -17476,26 +17465,6 @@
17476 },17465 },
17477};17466};
1747817467
17479static const unsigned char refresh_response_131b[] = {
17480 0x81, 0x03, 0x01, 0x01, 0x02, 0x82, 0x02, 0x82,
17481 0x81, 0x83, 0x01, 0x03,
17482};
17483
17484static const struct terminal_response_test refresh_response_data_131b = {
17485 .pdu = refresh_response_131b,
17486 .pdu_len = sizeof(refresh_response_131b),
17487 .response = {
17488 .number = 1,
17489 .type = STK_COMMAND_TYPE_REFRESH,
17490 .qualifier = 0x02, /* USIM Initialization & File Change */
17491 .src = STK_DEVICE_IDENTITY_TYPE_TERMINAL,
17492 .dst = STK_DEVICE_IDENTITY_TYPE_UICC,
17493 .result = {
17494 .type = STK_RESULT_TYPE_REFRESH_WITH_EFS,
17495 },
17496 },
17497};
17498
17499static const unsigned char refresh_response_141a[] = {17468static const unsigned char refresh_response_141a[] = {
17500 0x81, 0x03, 0x01, 0x01, 0x00, 0x82, 0x02, 0x82,17469 0x81, 0x03, 0x01, 0x01, 0x00, 0x82, 0x02, 0x82,
17501 0x81, 0x83, 0x01, 0x00,17470 0x81, 0x83, 0x01, 0x00,
@@ -18338,9 +18307,6 @@
18338 0x06, 0x45, 0x91, 0xa4, 0x90,18307 0x06, 0x45, 0x91, 0xa4, 0x90,
18339};18308};
1834018309
18341static const short bcch_channels_131[] = {
18342};
18343
18344static const struct terminal_response_test18310static const struct terminal_response_test
18345 provide_local_info_response_data_131 = {18311 provide_local_info_response_data_131 = {
18346 .pdu = provide_local_info_response_131,18312 .pdu = provide_local_info_response_131,

Subscribers

People subscribed via source and target branches

to all changes: