summaryrefslogtreecommitdiffstats
path: root/plugins/hso.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-01-12 04:37:40 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-01-12 04:37:40 +0100
commitd4eeced43c521bd6ab88211d2da70f174d2ce61c (patch)
tree1094fe6f90f652cae062e1502adbedcd67d8ace2 /plugins/hso.c
parent0043f4735e774035a4ccaa4f9f34105410af0bc0 (diff)
downloadofono-d4eeced43c521bd6ab88211d2da70f174d2ce61c.tar.bz2
hso: Setup CSCS after SIM card has been detected
Diffstat (limited to 'plugins/hso.c')
-rw-r--r--plugins/hso.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/hso.c b/plugins/hso.c
index 19bdc5e4..4834c56c 100644
--- a/plugins/hso.c
+++ b/plugins/hso.c
@@ -218,6 +218,16 @@ static void sim_status(gboolean ok, GAtResult *result, gpointer user_data)
return;
/*
+ * 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);
+
+ /*
* Option has the concept of Speech Service versus
* Data Service. Problem is that in Data Service mode
* the card will reject all voice calls. This is a
@@ -345,16 +355,6 @@ 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);