* [PATCH 1/1] handle werid mbm card network name
@ 2009-11-04 5:33 Martin Xu
2009-11-04 5:54 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Martin Xu @ 2009-11-04 5:33 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 791 bytes --]
---
plugins/udev.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/plugins/udev.c b/plugins/udev.c
index c2e9c41..345613b 100644
--- a/plugins/udev.c
+++ b/plugins/udev.c
@@ -120,7 +120,8 @@ static void add_mbm(struct ofono_modem *modem,
devnode = udev_device_get_devnode(udev_device);
ofono_modem_set_string(modem, GPS_DEVICE, devnode);
} else if (g_str_has_suffix(desc, "Minicard Network Adapter") ||
- g_str_has_suffix(desc, "Broadband Network Adapter")) {
+ g_str_has_suffix(desc, "Broadband Network Adapter") ||
+ g_str_has_suffix(desc, "Minicard NetworkAdapter")) {
devnode = udev_device_get_property_value(udev_device,
"INTERFACE");
ofono_modem_set_string(modem, NETWORK_INTERFACE, devnode);
--
1.6.1.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] handle werid mbm card network name
2009-11-04 5:33 [PATCH 1/1] handle werid mbm card network name Martin Xu
@ 2009-11-04 5:54 ` Marcel Holtmann
2009-11-04 8:12 ` Xu, Martin
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2009-11-04 5:54 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1043 bytes --]
Hi Martin,
> plugins/udev.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/plugins/udev.c b/plugins/udev.c
> index c2e9c41..345613b 100644
> --- a/plugins/udev.c
> +++ b/plugins/udev.c
> @@ -120,7 +120,8 @@ static void add_mbm(struct ofono_modem *modem,
> devnode = udev_device_get_devnode(udev_device);
> ofono_modem_set_string(modem, GPS_DEVICE, devnode);
> } else if (g_str_has_suffix(desc, "Minicard Network Adapter") ||
> - g_str_has_suffix(desc, "Broadband Network Adapter")) {
> + g_str_has_suffix(desc, "Broadband Network Adapter") ||
> + g_str_has_suffix(desc, "Minicard NetworkAdapter")) {
> devnode = udev_device_get_property_value(udev_device,
> "INTERFACE");
> ofono_modem_set_string(modem, NETWORK_INTERFACE, devnode);
are you serious? They forgot the space in one of their USB interface
descriptions.
Do me a favor and just add it between these two and don't bother with
the extra indentation. Two are enough.
Regards
Marcel
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 1/1] handle werid mbm card network name
2009-11-04 5:54 ` Marcel Holtmann
@ 2009-11-04 8:12 ` Xu, Martin
0 siblings, 0 replies; 3+ messages in thread
From: Xu, Martin @ 2009-11-04 8:12 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1726 bytes --]
> -----Original Message-----
> From: ofono-bounces(a)ofono.org [mailto:ofono-bounces(a)ofono.org] On Behalf
> Of Marcel Holtmann
> Sent: Wednesday, November 04, 2009 1:55 PM
> To: ofono(a)ofono.org
> Subject: Re: [PATCH 1/1] handle werid mbm card network name
>
> Hi Martin,
>
> > plugins/udev.c | 3 ++-
> > 1 files changed, 2 insertions(+), 1 deletions(-)
> >
> > diff --git a/plugins/udev.c b/plugins/udev.c
> > index c2e9c41..345613b 100644
> > --- a/plugins/udev.c
> > +++ b/plugins/udev.c
> > @@ -120,7 +120,8 @@ static void add_mbm(struct ofono_modem *modem,
> > devnode = udev_device_get_devnode(udev_device);
> > ofono_modem_set_string(modem, GPS_DEVICE, devnode);
> > } else if (g_str_has_suffix(desc, "Minicard Network Adapter") ||
> > - g_str_has_suffix(desc, "Broadband Network Adapter")) {
> > + g_str_has_suffix(desc, "Broadband Network Adapter") ||
> > + g_str_has_suffix(desc, "Minicard NetworkAdapter")) {
> > devnode = udev_device_get_property_value(udev_device,
> > "INTERFACE");
> > ofono_modem_set_string(modem, NETWORK_INTERFACE, devnode);
>
> are you serious? They forgot the space in one of their USB interface
> descriptions.
Of course, I am serious.
It waste me almost half of morning to debug the weird issue.
> Do me a favor and just add it between these two and don't bother with
> the extra indentation. Two are enough.
I cannot understand what your meaning exactly. Anyway I will send the modified patch, if it is not what you want, just replace it. ;-)
> Regards
>
> Marcel
>
>
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org
> http://lists.ofono.org/listinfo/ofono
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-04 8:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-04 5:33 [PATCH 1/1] handle werid mbm card network name Martin Xu
2009-11-04 5:54 ` Marcel Holtmann
2009-11-04 8:12 ` Xu, Martin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.