~phablet-team/ofono/lp1545005

« back to all changes in this revision

Viewing changes to gril/grilunsol.c

  • Committer: Bileto Bot
  • Date: 2016-07-01 17:31:10 UTC
  • mfrom: (6915.1.4 ubuntu)
  • Revision ID: ci-train-bot@canonical.com-20160701173110-by60wk3dg933fmzf
* qcommsimmodem: fix slot selection for cellular data
* gril: update requests to M
* ril: refactor management of radio power states
* mtk2: new driver to support midori
* Fix cellular data switch in turbo (LP: #1592258)
* Fix ofono re-starts on boot in turbo (LP: #1580908)
* voicecall: add emergency numbers required for China Market

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        size = parcel_r_int32(&rilp);
62
62
        version = parcel_r_int32(&rilp);
63
63
 
 
64
        /*
 
65
         * For something that looks like a bug we get an extra int in mtk2
 
66
         * modems. RIL version is the second integer in this case. This
 
67
         * happens when we get duplicated connected events, which should
 
68
         * not happen either. In these cases the first event has the right
 
69
         * size, but not those appearing after.
 
70
         */
 
71
        if (g_ril_vendor(gril) == OFONO_RIL_VENDOR_MTK2 && size > 1)
 
72
                version = parcel_r_int32(&rilp);
 
73
 
64
74
        if (rilp.malformed) {
65
75
                ofono_error("%s: malformed parcel", __func__);
66
76
                version = RIL_VERSION_UNSPECIFIED;
67
77
        }
68
78
 
69
 
        g_ril_append_print_buf(gril, "{size:%d, [%d, ...]}", size, version);
 
79
        g_ril_append_print_buf(gril, "{size: %d, [%d]}", size, version);
70
80
        g_ril_print_unsol(gril, message);
71
81
 
72
82
        return version;