summaryrefslogtreecommitdiffstats
path: root/plugins/speedup.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-01-12 04:38:50 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-01-12 04:38:50 +0100
commitaba7731fdc200396d31a08add90e49be8dd75b05 (patch)
tree2404364924c2d4d6f5891b60abfaf5789789177e /plugins/speedup.c
parentd4eeced43c521bd6ab88211d2da70f174d2ce61c (diff)
downloadofono-aba7731fdc200396d31a08add90e49be8dd75b05.tar.bz2
speedup: Setup CSCS after SIM card has been detected
Diffstat (limited to 'plugins/speedup.c')
-rw-r--r--plugins/speedup.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/speedup.c b/plugins/speedup.c
index d4dfd8a1..ca6ed13e 100644
--- a/plugins/speedup.c
+++ b/plugins/speedup.c
@@ -143,6 +143,16 @@ static void sim_state_cb(gboolean present, gpointer user_data)
/* AT&C0 needs to be send separate and on both channel */
g_at_chat_send(data->modem, "AT&C0", NULL, NULL, NULL, NULL);
g_at_chat_send(data->aux, "AT&C0", NULL, NULL, NULL, NULL);
+
+ /*
+ * Ensure that the modem is using GSM character set and not IRA,
+ * otherwise weirdness with umlauts and other non-ASCII characters
+ * can result
+ */
+ g_at_chat_send(data->modem, "AT+CSCS=\"GSM\"", none_prefix,
+ NULL, NULL, NULL);
+ g_at_chat_send(data->aux, "AT+CSCS=\"GSM\"", none_prefix,
+ NULL, NULL, NULL);
}
static void cfun_enable(gboolean ok, GAtResult *result, gpointer user_data)
@@ -187,16 +197,6 @@ static int speedup_enable(struct ofono_modem *modem)
g_at_chat_send(data->modem, "ATE0 +CMEE=1", NULL, NULL, NULL, NULL);
g_at_chat_send(data->aux, "ATE0 +CMEE=1", NULL, NULL, NULL, NULL);
- /*
- * Ensure that the modem is using GSM character set and not IRA,
- * otherwise weirdness with umlauts and other non-ASCII characters
- * can result
- */
- g_at_chat_send(data->modem, "AT+CSCS=\"GSM\"", none_prefix,
- NULL, NULL, NULL);
- g_at_chat_send(data->aux, "AT+CSCS=\"GSM\"", none_prefix,
- NULL, NULL, NULL);
-
g_at_chat_send(data->aux, "AT+CFUN=1", NULL,
cfun_enable, modem, NULL);