aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-03-24 19:02:01 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-24 19:17:19 +0100
commit43cdb25eb176a18d04de68d1104a630555d7e60d (patch)
tree6ad9d317e1515b7aa4c3a0b1bfd69c7ef5376afb
parent41a592b5352281db24a030065778731dec87e53a (diff)
option: handle response specifying automatic mode
Option modems may reply '_OPSYS: 5,2' to report automatic mode being used.
-rw-r--r--plugins/option/mm-broadband-modem-option.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/option/mm-broadband-modem-option.c b/plugins/option/mm-broadband-modem-option.c
index c27cf85b..3622dd62 100644
--- a/plugins/option/mm-broadband-modem-option.c
+++ b/plugins/option/mm-broadband-modem-option.c
@@ -102,6 +102,10 @@ load_allowed_modes_finish (MMIfaceModem *self,
*allowed = (MM_MODEM_MODE_2G | MM_MODEM_MODE_3G);
*preferred = MM_MODEM_MODE_3G;
return TRUE;
+ case 5: /* any */
+ *allowed = (MM_MODEM_MODE_CS | MM_MODEM_MODE_2G | MM_MODEM_MODE_3G);
+ *preferred = MM_MODEM_MODE_NONE;
+ return TRUE;
default:
break;
}
@@ -109,7 +113,7 @@ load_allowed_modes_finish (MMIfaceModem *self,
g_set_error (error,
MM_CORE_ERROR,
MM_CORE_ERROR_FAILED,
- "Couldn't unexpected OSSYS response: '%s'",
+ "Couldn't parse unexpected OSSYS response: '%s'",
response);
return FALSE;
}