From 82cee08875363ed58e6dc010dc4b190d063d7035 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 2 May 2011 18:34:37 -0500 Subject: [PATCH] samsung: lock plugin to Y3300 to exclude other Samsung USB modems Like the SGH-Z810/SCH-U209 which are a different chipset, don't have pseudo-ethernet ports, and just wouldn't work with this plugin. --- plugins/mm-plugin-samsung.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/mm-plugin-samsung.c b/plugins/mm-plugin-samsung.c index eb5e0711..350d4ded 100755 --- a/plugins/mm-plugin-samsung.c +++ b/plugins/mm-plugin-samsung.c @@ -83,6 +83,10 @@ supports_port (MMPluginBase *base, if (vendor != 0x04e8 && vendor != 0x1983) return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; + /* Product ID check */ + if (product != 0x6872) + return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; + /* The ethernet ports are obviously supported and don't need probing */ if (!strcmp (subsys, "net")) { mm_plugin_base_supports_task_complete (task, 10);