From 8d6acf833a9c3dbf13e5780dc93edfae88cdc183 Mon Sep 17 00:00:00 2001 From: Jussi Kangas Date: Thu, 9 Jan 2014 12:07:15 +0200 Subject: [PATCH] [rilmodem] Do not increase modem id when restarted Silent restarting of rilmodem without killing ofono when rild dies causes ril modem id to increase. This might cause problems if clients are not reading the modem id. Since this modem id increase is unnecessary at the moment ( we are not supporting multiple modems ) removal of id increase is recommendable as precaution. Signed-off-by: Jussi Kangas --- ofono/plugins/ril.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofono/plugins/ril.c b/ofono/plugins/ril.c index 08eef3ab..75ffa5e1 100644 --- a/ofono/plugins/ril.c +++ b/ofono/plugins/ril.c @@ -567,7 +567,7 @@ static int ril_init(void) * * args are name (optional) & type */ - modem = ofono_modem_create(NULL, "ril"); + modem = ofono_modem_create("ril_0", "ril"); if (modem == NULL) { DBG("ofono_modem_create failed for ril"); return -ENODEV;