phonesim: Fix multiplexer setup handling and modem power

This commit is contained in:
Marcel Holtmann 2010-10-19 18:50:06 +02:00
parent 0caafef6c9
commit 96c04a744b
1 changed files with 5 additions and 0 deletions

View File

@ -248,9 +248,14 @@ static int phonesim_enable(struct ofono_modem *modem)
}
if (data->use_mux) {
g_at_chat_send(data->chat, "ATE0", NULL, NULL, NULL, NULL);
g_at_mux_setup_gsm0710(data->chat, mux_setup, modem, NULL);
g_at_chat_unref(data->chat);
data->chat = NULL;
return -EINPROGRESS;
}
g_at_chat_send(data->chat, "AT+CSCS=\"GSM\"", none_prefix,