summaryrefslogtreecommitdiffstats
path: root/plugins/atgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/atgen.c')
-rw-r--r--plugins/atgen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/atgen.c b/plugins/atgen.c
index 8300da27..e174d6fc 100644
--- a/plugins/atgen.c
+++ b/plugins/atgen.c
@@ -121,8 +121,9 @@ static int atgen_enable(struct ofono_modem *modem)
syntax = g_at_syntax_new_gsm_permissive();
else
return -EINVAL;
- } else
+ } else {
syntax = g_at_syntax_new_gsmv1();
+ }
chat = g_at_chat_new(channel, syntax);
g_at_syntax_unref(syntax);