diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-01-12 04:37:03 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-01-12 04:37:03 +0100 |
commit | 0043f4735e774035a4ccaa4f9f34105410af0bc0 (patch) | |
tree | ad4038f31246186eb526a80aa0789e4192c4e8ec /plugins/huawei.c | |
parent | f654d751829932a7a102bcd7e7489c266818f814 (diff) | |
download | ofono-0043f4735e774035a4ccaa4f9f34105410af0bc0.tar.bz2 |
huawei: Setup CSCS after SIM card has been detected
Diffstat (limited to 'plugins/huawei.c')
-rw-r--r-- | plugins/huawei.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c index b6346b6d..a4a6b93a 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -420,6 +420,16 @@ static void sysinfo_enable_cb(gboolean ok, GAtResult *result, g_at_chat_send(data->modem, "AT&C0", NULL, NULL, NULL, NULL); g_at_chat_send(data->pcui, "AT&C0", 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); + /* Query current device settings */ g_at_chat_send(data->pcui, "AT^U2DIAG?", none_prefix, NULL, NULL, NULL); @@ -592,16 +602,6 @@ 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 */ |