diff options
author | Dan Williams <dcbw@redhat.com> | 2011-05-02 18:34:37 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-05-02 18:35:50 -0500 |
commit | 82cee08875363ed58e6dc010dc4b190d063d7035 (patch) | |
tree | 1d106e9ad5fb4f1090c26fd1c813d772560221e0 | |
parent | 863dbca63132b820fca6c48a9c212f852752ee16 (diff) |
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.
-rwxr-xr-x | plugins/mm-plugin-samsung.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |