diff options
author | David Castellanos <dcastellanos@indra.es> | 2013-03-26 16:24:40 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-01 16:03:39 +0200 |
commit | 2896e711ae8d4ae5b2188c963aeb8456ff2189fe (patch) | |
tree | 8ddf5340adce51c76986cbc96d5ffb0b35286bb0 | |
parent | c9b7761ed5ae83989cd3c8e2fbb5fc413c351102 (diff) | |
download | ModemManager-2896e711ae8d4ae5b2188c963aeb8456ff2189fe.tar.gz |
x22x: Fix problem in set allowed mode
NM attempts to set allowed and preferred mode during the connection
process. The plugin x220x does not handle properly when NM request
allowed mode to '2g, 3g' and the preferred mode to 'none'.
This commit attempts to solve the problem described above. When this
situation happens, establish the mode of the modem has 'ANY' (which
seems the safest one) instead of just throwing an error.
Signed-off-by: David Castellanos <dcastellanos@indra.es>
-rw-r--r-- | plugins/x22x/mm-broadband-modem-x22x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/x22x/mm-broadband-modem-x22x.c b/plugins/x22x/mm-broadband-modem-x22x.c index f61845a73..758e8f3de 100644 --- a/plugins/x22x/mm-broadband-modem-x22x.c +++ b/plugins/x22x/mm-broadband-modem-x22x.c @@ -160,6 +160,8 @@ set_allowed_modes (MMIfaceModem *self, else if (allowed == MM_MODEM_MODE_ANY && preferred == MM_MODEM_MODE_NONE) syssel = 0; + else if (allowed == (MM_MODEM_MODE_2G | MM_MODEM_MODE_3G)) + syssel = 0; else { gchar *allowed_str; gchar *preferred_str; |