Hi Denis, > De : Denis Kenzior > > Hi Benoît, > > I prefer you do this in plugins/hso and not in udev. > Is the patch below correct ? I moved the call to set_name to hso_probe. Benoît -- Subject: [PATCH] hso: Set modem name based on udev network interface name Useful if you have multiple identical modems and you need a way to know which modem you're talking to. --- plugins/hso.c |    6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/plugins/hso.c b/plugins/hso.c index 055c63b..a9fb1ba 100644 --- a/plugins/hso.c +++ b/plugins/hso.c @@ -59,6 +59,7 @@ struct hso_data { static int hso_probe(struct ofono_modem *modem) {        struct hso_data *data; +       const char *interface;        DBG("%p", modem); @@ -68,6 +69,11 @@ static int hso_probe(struct ofono_modem *modem)        ofono_modem_set_data(modem, data); +       /* Set name based on network interface name */ +       interface = ofono_modem_get_string(modem, "NetworkInterface"); +       if (interface) +               ofono_modem_set_name(modem, interface); +        return 0; } --