Fix: Force calypso to return to command mode ASAP

Calypso firmware is just bizarre.  It seems that if anything is sent
before CPI=3 to the DLC handling voice commands, the ATD will not return
to command mode immediately, but instead wait until connected / failed
condition occurs.

If CPI=3 is sent first, then calypso will go to command mode immediately
after ATD is issued and report CPI indications as usual.
This commit is contained in:
Denis Kenzior 2009-12-01 12:38:14 -06:00 committed by Denis Kenzior
parent 5323e37bc8
commit a514983981
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ static void setup_modem(struct ofono_modem *modem)
NULL, NULL, NULL);
/* audio side tone: set to minimum */
g_at_chat_send(data->dlcs[VOICE_DLC], "AT@ST=\"-26\"", NULL,
g_at_chat_send(data->dlcs[SETUP_DLC], "AT@ST=\"-26\"", NULL,
NULL, NULL, NULL);
/* Disable deep sleep */
@ -452,7 +452,7 @@ static void calypso_post_sim(struct ofono_modem *modem)
data->dlcs[NETREG_DLC]);
ofono_call_meter_create(modem, 0, "atmodem", data->dlcs[AUX_DLC]);
ofono_call_barring_create(modem, 0, "atmodem", data->dlcs[AUX_DLC]);
ofono_ssn_create(modem, 0, "atmodem", data->dlcs[VOICE_DLC]);
ofono_ssn_create(modem, 0, "atmodem", data->dlcs[AUX_DLC]);
ofono_call_volume_create(modem, 0, "atmodem", data->dlcs[AUX_DLC]);
mw = ofono_message_waiting_create(modem);