diff options
author | Richard Röjfors <richard.rojfors@gmail.com> | 2017-10-04 20:49:30 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2017-10-05 11:20:05 -0500 |
commit | 5b4539fd9a4e75375a3af16cc83949ddf88a9c63 (patch) | |
tree | 3ac85057bb03a8d5feab2c24f25d6393627b8e60 /plugins/ublox.c | |
parent | b33470bcf9d0efe4a81d4fe8e979c5a37aac03a0 (diff) | |
download | ofono-5b4539fd9a4e75375a3af16cc83949ddf88a9c63.tar.gz |
ublox: Disable DCD to avoid HUP when leaving data mode.
The HUP results in errors in gatio which will deref parts
of the AT channel. This makes it impossible to recover and
send further AT commands after the HUP.
Diffstat (limited to 'plugins/ublox.c')
-rw-r--r-- | plugins/ublox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/ublox.c b/plugins/ublox.c index 250a5be4..5611ef5c 100644 --- a/plugins/ublox.c +++ b/plugins/ublox.c @@ -200,6 +200,8 @@ static int ublox_enable(struct ofono_modem *modem) g_at_chat_send(data->modem, "ATE0 +CMEE=1", none_prefix, NULL, NULL, NULL); + + g_at_chat_send(data->modem, "AT&C0", NULL, NULL, NULL, NULL); } /* The modem can take a while to wake up if just powered on. */ |