generic: only send CGACT if PS network is supported

This commit is contained in:
Aleksander Morgado
2012-02-17 13:25:02 +01:00
parent 740680fd3b
commit 40512451cc
+4 -2
View File
@@ -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),