huawei: Setup CSCS on both ports

This commit is contained in:
Denis Kenzior 2012-01-11 06:36:14 -06:00
parent e8f56215d9
commit 908eadf4d1
1 changed files with 10 additions and 0 deletions

View File

@ -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 */