diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-06-21 14:41:56 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2011-06-22 13:11:38 +0200 |
commit | ab485bd66a3dfe4fdafe6425f48417997784be21 (patch) | |
tree | 462e5de01cdb0ec2420e5674f3400ff6a22d5b61 | |
parent | 255525a5a2d499ef7b4d01cea660502bd1dff6a5 (diff) |
wavecom: try to power-up without rebooting
Using AT+CFUN=1,0 so that we request to avoid resetting (<rst>=0). Works
properly when powering up after having put the modem in standby mode with
AT+CFUN=4.
Note that the power-up command will only be sent if the check to see if power-up
is needed requests it.
-rw-r--r-- | plugins/mm-modem-wavecom-gsm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mm-modem-wavecom-gsm.c b/plugins/mm-modem-wavecom-gsm.c index 652511a0..dc541713 100644 --- a/plugins/mm-modem-wavecom-gsm.c +++ b/plugins/mm-modem-wavecom-gsm.c @@ -218,10 +218,10 @@ get_property (GObject *object, { switch (prop_id) { case MM_GENERIC_GSM_PROP_POWER_UP_CMD: - /* Wavecom doesn't like CFUN=1, it will reset the whole software stack, - * including the USB connection and therefore connection would get - * closed */ - g_value_set_string (value, ""); + /* Try to go to full functionality mode without rebooting the system. + * Works well if we previously switched off the power with CFUN=4 + */ + g_value_set_string (value, "+CFUN=1,0"); break; case MM_GENERIC_GSM_PROP_FLOW_CONTROL_CMD: /* Wavecom doesn't have XOFF/XON flow control, so we enable RTS/CTS */ |