Use blocking GAtChat objects for STE modems
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 30 Jan 2010 15:46:22 +0000 (07:46 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 30 Jan 2010 15:46:22 +0000 (07:46 -0800)
Due to some missing implementation of POLLOUT, the access to the CAIF
channels of the STE modems have to be done in a blocking fashion.

plugins/ste.c

index 5605b76..66065c1 100644 (file)
@@ -157,7 +157,7 @@ static int ste_enable(struct ofono_modem *modem)
 
        syntax = g_at_syntax_new_gsm_permissive();
 
-       data->chat = g_at_chat_new(channel, syntax);
+       data->chat = g_at_chat_new_blocking(channel, syntax);
        g_at_syntax_unref(syntax);
        g_io_channel_unref(channel);