diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-06-07 11:35:54 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-02-17 13:25:02 +0100 |
commit | 40512451cc839534833c2b9ea51432a50deb2211 (patch) | |
tree | dd07d271a470adacffef5f6cf32348cce769b9d0 /src | |
parent | 740680fd3be3c976db6f1612f3fd834ceb402632 (diff) |
generic: only send CGACT if PS network is supported
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-generic-gsm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c index cc0e4950..273095e6 100644 --- a/src/mm-generic-gsm.c +++ b/src/mm-generic-gsm.c @@ -3861,8 +3861,10 @@ disconnect_flash_done (MMSerialPort *port, priv = MM_GENERIC_GSM_GET_PRIVATE (info->modem); mm_port_set_connected (priv->data, FALSE); - /* Don't bother doing the CGACT again if it was done on a secondary port */ - if (mm_callback_info_get_data (info, DISCONNECT_CGACT_DONE_TAG)) + /* Don't bother doing the CGACT again if it was done on a secondary port, + * or if no GPRS activation was done before. */ + if ( mm_callback_info_get_data (info, DISCONNECT_CGACT_DONE_TAG) + || !ps_network_supported (MM_GENERIC_GSM (info->modem))) disconnect_all_done (MM_AT_SERIAL_PORT (priv->primary), NULL, NULL, info); else { disconnect_send_cgact (MM_AT_SERIAL_PORT (priv->primary), |