diff options
author | Dan Williams <dcbw@redhat.com> | 2011-08-14 16:02:41 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-08-14 16:02:41 -0500 |
commit | 8799f4da1fdf0f0cad36dc6de68e3c35cc8177ae (patch) | |
tree | c38ebe12a3d8f67968057ee01a6dd3429c1907ac /plugins/mm-plugin-zte.c | |
parent | 8ea17921e736d56f7d758f2f885326ea49e495d7 (diff) |
core: when probing mark ports as AT capable too
On a ZTE MF626, sometimes the aux port will respond only with
"ERROR" to probing commands (while the SIM is starting up) and
previously we'd lose the port because we were only looking for
valid probe responses. But if the port returns ERROR or CME ERROR
etc we know it's an AT port and that we can use it once we've
gotten the type response (CDMA or GSM) from the main port.
Diffstat (limited to 'plugins/mm-plugin-zte.c')
-rw-r--r-- | plugins/mm-plugin-zte.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mm-plugin-zte.c b/plugins/mm-plugin-zte.c index 4d8107e4..6329c3ab 100644 --- a/plugins/mm-plugin-zte.c +++ b/plugins/mm-plugin-zte.c @@ -49,6 +49,8 @@ get_level_for_capabilities (guint32 capabilities) return 10; if (capabilities & MM_PLUGIN_BASE_PORT_CAP_QCDM) return 10; + if (capabilities & MM_PLUGIN_BASE_PORT_CAP_AT) + return 10; return 0; } |