File mm-hp-sierra.patch of Package ModemManager

commit 793044b577c18d3b9028276fdec629981c75f5ed
Author: Tambet Ingo <tambet@gmail.com>
Date:   Thu Dec 4 17:39:15 2008 +0200

    Add support for the HP branded version of the sierra mc8775.
    
    Patch from Stefan Seyfried <seife@suse.de>.

diff --git a/plugins/mm-plugin-sierra.c b/plugins/mm-plugin-sierra.c
index 6e7b697..7185c4d 100644
--- a/plugins/mm-plugin-sierra.c
+++ b/plugins/mm-plugin-sierra.c
@@ -80,6 +80,14 @@ supports_udi (MMPlugin *plugin, LibHalContext *hal_ctx, const char *udi)
                 if (vendor == 0x1199)
                     supported = TRUE;
 
+                if (vendor == 0x03f0) {
+                    int product;
+
+                    product = libhal_device_get_property_int (hal_ctx, parent_udi, "usb.product_id", NULL);
+                    if (product == 0x1e1d)
+                        supported = TRUE;
+                }
+
                 libhal_free_string (parent_udi);
             }
         }
openSUSE Build Service is sponsored by