summaryrefslogtreecommitdiffstats
path: root/plugins/speedup.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-01-11 06:36:52 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-01-11 06:38:28 -0600
commit845deec5541af6bf58e40a7eeed8ad0b67bccc31 (patch)
tree21c175f7d06a5c8cf2a2e1d4e924e850cd444df0 /plugins/speedup.c
parent9afba481287b7b06737bdd29aaec8b87dbda8c04 (diff)
downloadofono-845deec5541af6bf58e40a7eeed8ad0b67bccc31.tar.bz2
speedup: Setup CSCS on both ports
Diffstat (limited to 'plugins/speedup.c')
-rw-r--r--plugins/speedup.c12
1 files changed, 12 insertions, 0 deletions
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 <drivers/atmodem/atutil.h>
#include <drivers/atmodem/vendor.h>
+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);