summaryrefslogtreecommitdiffstats
path: root/plugins/huawei.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-01-11 06:36:14 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-01-11 06:38:28 -0600
commit908eadf4d1992e26b02388063f8465747e454e1e (patch)
tree4201e9815d5c09defd75cf7ded9f4a610d721eba /plugins/huawei.c
parente8f56215d9a62b66e6645af9e75efbc6d2424600 (diff)
downloadofono-908eadf4d1992e26b02388063f8465747e454e1e.tar.bz2
huawei: Setup CSCS on both ports
Diffstat (limited to 'plugins/huawei.c')
-rw-r--r--plugins/huawei.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c
index 5030e002..d57e7955 100644
--- a/plugins/huawei.c
+++ b/plugins/huawei.c
@@ -554,6 +554,16 @@ static int huawei_enable(struct ofono_modem *modem)
g_at_chat_send(data->modem, "ATE0 +CMEE=1", NULL, NULL, NULL, NULL);
g_at_chat_send(data->pcui, "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->pcui, "AT+CSCS=\"GSM\"", none_prefix,
+ NULL, NULL, NULL);
+
data->sim_state = SIM_STATE_NOT_EXISTENT;
/* Check for GSM capabilities */