~phablet-team/ofono/midori-support

« back to all changes in this revision

Viewing changes to plugins/qcom-msim.c

  • Committer: CI Train Bot
  • Author(s): Alfonso Sanchez-Beato
  • Date: 2016-03-14 09:11:23 UTC
  • mfrom: (6911.1.2 ubuntu)
  • Revision ID: ci-train-bot@canonical.com-20160314091123-zolwcf6cjokyqe5f
[ Tony Espy ]
* unit: new rilmodem tests for sms and call barring
* plugins: address upower plugin upstream comments
* unit: fix test-grilreply set_facility_lock test
* style fixes for wakelock support

[ Ratchanan Srirattanamet ]
* qcommsimmodem: fix setting 3G pref when one of the slots is empty

[ Alfonso Sanchez-Beato ]
* ril: set properly gril vendor
* support for system settings
* unit: make unit tests parallelizable

[ Vicamo Yang ]
* ril, gril: support for pro 5
* gril, rilmodem: set RIL version from CONNECTED event
* unit: fix warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
static int qcom_msim_probe(struct ofono_modem *modem)
38
38
{
 
39
        int slot_id = ofono_modem_get_integer(modem, "Slot");
 
40
 
 
41
        /* qcom_msim has socket path "rild", "rild1", ... */
 
42
        if (slot_id != 0) {
 
43
                char *socket;
 
44
 
 
45
                socket = g_strdup_printf("/dev/socket/rild%d", slot_id);
 
46
                ofono_modem_set_string(modem, "Socket", socket);
 
47
 
 
48
                g_free(socket);
 
49
        }
 
50
 
39
51
        return ril_create(modem, OFONO_RIL_VENDOR_QCOM_MSIM);
40
52
}
41
53