From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] hso: Set modem name based on udev network interface name
Date: Fri, 22 Oct 2010 10:39:57 -0500 [thread overview]
Message-ID: <4CC1B04D.5010304@gmail.com> (raw)
In-Reply-To: <20101021082620.178830@gmx.com>
[-- Attachment #1: Type: text/plain, Size: 806 bytes --]
Hi Benoît,
On 10/21/2010 03:26 AM, "Benoît Monin" wrote:
> Useful if you have multiple identical modems and you need a way
> to know which modem you're talking to.
> ---
> plugins/udev.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/plugins/udev.c b/plugins/udev.c
> index 737a637..e687c01 100644
> --- a/plugins/udev.c
> +++ b/plugins/udev.c
> @@ -191,6 +191,7 @@ static void add_hso(struct ofono_modem *modem,
> } else if (g_str_equal(subsystem, "net") == TRUE) {
> devnode = get_property(udev_device, "INTERFACE");
> ofono_modem_set_string(modem, NETWORK_INTERFACE, devnode);
> + ofono_modem_set_name(modem, devnode);
I prefer you do this in plugins/hso and not in udev.
Regards,
-Denis
next prev parent reply other threads:[~2010-10-22 15:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-21 8:26 [PATCH] hso: Set modem name based on udev network interface name =?unknown-8bit?q?Beno=C3=AEt?= Monin
2010-10-22 15:39 ` Denis Kenzior [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-10-25 9:13 =?unknown-8bit?q?Beno=C3=AEt?= Monin
2010-10-25 11:17 ` Marcel Holtmann
2010-10-25 11:35 =?unknown-8bit?q?Beno=C3=AEt?= Monin
2010-10-25 12:15 ` Marcel Holtmann
2010-11-07 20:32 ` =?unknown-8bit?q?Beno=C3=AEt?= Monin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CC1B04D.5010304@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox