handle werid mbm card network name
PATCH 1/1 handle werid mbm card network name
--- plugins/udev.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
plugins/udev.c +2 -1
@@ -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);
Signature · 1 line
1.6.1.3
Hi Martin,
Quoted 8 lines
plugins/udev.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)plugins/udev.c +0
-0
plugins/udev.c static void add_mbm(struct ofono_modem *modem, · line 127
Quoted 9 lines
plugins/udev.c +2
-1@@ -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
Xu
Quoted 21 lines
-----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 nameHi Martin,
Quoted 12 lines
plugins/udev.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)plugins/udev.c +0
-1@@ -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" )) {
Quoted 8 lines
plugins/udev.c static void add_mbm(struct ofono_modem *modem, · line 127
Quoted 5 lines
plugins/udev.c +2
-0+ 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.
Quoted 2 lines
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. ;-)
Quoted 9 lines
Regards
Marcel
_______________________________________________
ofono mailing list
ofono(a)ofono.org
http://lists.ofono.org/listinfo/ofono