Fix: Force calypso to return to command mode ASAP
authorDenis Kenzior <denis.kenzior@intel.com>
Tue, 1 Dec 2009 18:38:14 +0000 (12:38 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 1 Dec 2009 18:45:44 +0000 (12:45 -0600)
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.

plugins/calypso.c

index 778e6b8..c5403de 100644 (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);