summaryrefslogtreecommitdiffstats
path: root/plugins/hso.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-01-11 06:29:43 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-01-11 06:38:28 -0600
commite8f56215d9a62b66e6645af9e75efbc6d2424600 (patch)
tree352baa50266078ea21ead0fca6e4fb9f0b1d1c21 /plugins/hso.c
parent6f2f3897c7ffb778c415a9522b05db9a0ad17619 (diff)
downloadofono-e8f56215d9a62b66e6645af9e75efbc6d2424600.tar.bz2
hso: Setup CSCS properly
Diffstat (limited to 'plugins/hso.c')
-rw-r--r--plugins/hso.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/hso.c b/plugins/hso.c
index 30719a2c..19bdc5e4 100644
--- a/plugins/hso.c
+++ b/plugins/hso.c
@@ -345,6 +345,16 @@ static int hso_enable(struct ofono_modem *modem)
g_at_chat_send(data->control, "ATE0 +CMEE=1", NULL, NULL, NULL, NULL);
g_at_chat_send(data->app, "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->control, "AT+CSCS=\"GSM\"", none_prefix,
+ NULL, NULL, NULL);
+ g_at_chat_send(data->app, "AT+CSCS=\"GSM\"", none_prefix,
+ NULL, NULL, NULL);
+
g_at_chat_send(data->control, "AT+CFUN=4", none_prefix,
cfun_enable, modem, NULL);