From 845deec5541af6bf58e40a7eeed8ad0b67bccc31 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 11 Jan 2012 06:36:52 -0600 Subject: [PATCH] speedup: Setup CSCS on both ports --- plugins/speedup.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/speedup.c b/plugins/speedup.c index a90dfe33..d4dfd8a1 100644 --- a/plugins/speedup.c +++ b/plugins/speedup.c @@ -47,6 +47,8 @@ #include #include +static const char *none_prefix[] = { NULL }; + struct speedup_data { GAtChat *modem; GAtChat *aux; @@ -185,6 +187,16 @@ 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);