Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH -v2 01/24] udevng: look also to VID
@ 2011-09-13 18:58 Gustavo F. Padovan
  2011-09-13 18:58 ` [PATCH -v2 02/24] sap: add basic SAP plugin Gustavo F. Padovan
  0 siblings, 1 reply; 25+ messages in thread
From: Gustavo F. Padovan @ 2011-09-13 18:58 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

From: "Gustavo F. Padovan" <padovan@profusion.mobi>

Some drivers name are not properly set, so we need to rely on the VID
information as well
---
 plugins/udevng.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/plugins/udevng.c b/plugins/udevng.c
index 1365bd1..5fd9475 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -857,14 +857,16 @@ static void check_usb_device(struct udev_device *device)
 		DBG("%s [%s:%s]", drv, vid, pid);
 
 		for (i = 0; vendor_list[i].driver; i++) {
-			if (g_str_equal(vendor_list[i].drv, drv) == FALSE)
-				continue;
-
-			if (vendor_list[i].vid == NULL) {
-				driver = vendor_list[i].driver;
-				break;
+			if (g_str_equal(vendor_list[i].drv, drv) == TRUE) {
+				if (vendor_list[i].vid == NULL) {
+					driver = vendor_list[i].driver;
+					break;
+				}
 			}
 
+			if (vendor_list[i].vid == NULL)
+				continue;
+
 			if (g_str_equal(vendor_list[i].vid, vid) == TRUE) {
 				if (vendor_list[i].pid == NULL) {
 					if (driver == NULL)
-- 
1.7.6.2


^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2011-09-13 18:58 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-13 18:58 [PATCH -v2 01/24] udevng: look also to VID Gustavo F. Padovan
2011-09-13 18:58 ` [PATCH -v2 02/24] sap: add basic SAP plugin Gustavo F. Padovan
2011-09-13 18:58   ` [PATCH -v2 03/24] telit: add support to enable SAP client Gustavo F. Padovan
2011-09-13 18:58     ` [PATCH -v2 04/24] sap: add support to connect the RFCOMM link Gustavo F. Padovan
2011-09-13 18:58       ` [PATCH -v2 05/24] telit: add #RSEN notify Gustavo F. Padovan
2011-09-13 18:58         ` [PATCH -v2 06/24] sap: add watch for the Bluetooth Link Gustavo F. Padovan
2011-09-13 18:58           ` [PATCH -v2 07/24] sap: add support to open the channel for SAP data Gustavo F. Padovan
2011-09-13 18:58             ` [PATCH -v2 08/24] sap: connect the hw and the bluetooth link Gustavo F. Padovan
2011-09-13 18:58               ` [PATCH -v2 09/24] telit: add telit_sap_disable() Gustavo F. Padovan
2011-09-13 18:58                 ` [PATCH -v2 10/24] sap: add support to the disable the SAP client Gustavo F. Padovan
2011-09-13 18:58                   ` [PATCH -v2 11/24] telit: add aux GAtChat Gustavo F. Padovan
2011-09-13 18:58                     ` [PATCH -v2 12/24] sap: enable modem only when #RSEN is 1 Gustavo F. Padovan
2011-09-13 18:58                       ` [PATCH -v2 13/24] telit: enable the telit modem when SAP is enabled Gustavo F. Padovan
2011-09-13 18:58                         ` [PATCH -v2 14/24] sap: add pre_sim handling Gustavo F. Padovan
2011-09-13 18:58                           ` [PATCH -v2 15/24] sap: add set_online handling Gustavo F. Padovan
2011-09-13 18:58                             ` [PATCH -v2 16/24] sap: add post_sim handling Gustavo F. Padovan
2011-09-13 18:58                               ` [PATCH -v2 17/24] sap: add post_online handling Gustavo F. Padovan
2011-09-13 18:58                                 ` [PATCH -v2 18/24] telit: improve sap disable Gustavo F. Padovan
2011-09-13 18:58                                   ` [PATCH -v2 19/24] sap: disconnect link if enable() fails Gustavo F. Padovan
2011-09-13 18:58                                     ` [PATCH -v2 20/24] sap: do a proper shutdown of the channels Gustavo F. Padovan
2011-09-13 18:58                                       ` [PATCH -v2 21/24] sap: retrigger bluetooth GetProperties call Gustavo F. Padovan
2011-09-13 18:58                                         ` [PATCH -v2 22/24] telit: add needed flags to proper connect the serial port Gustavo F. Padovan
2011-09-13 18:58                                           ` [PATCH -v2 23/24] bluetooth: track DBus call pending Gustavo F. Padovan
2011-09-13  5:15                                             ` Denis Kenzior
2011-09-13 18:58                                             ` [PATCH -v2 24/24] sap: de-register DBus callback if BlueZ goes down Gustavo F. Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox