Message ID | 20240430115234.180185-5-martin@geanix.com (mailing list archive) |
---|---|
State | Accepted |
Commit | cbafc2eaf6def5dc3ee50ae70cfb961b8f748eab |
Headers | show |
Series | [01/10] sim7100: simplify serial device opening | expand |
diff --git a/plugins/sim7100.c b/plugins/sim7100.c index f4979ffe..2e9d0eb3 100644 --- a/plugins/sim7100.c +++ b/plugins/sim7100.c @@ -151,6 +151,16 @@ static void cgmm_cb(gboolean ok, GAtResult *result, gpointer user_data) break; } + switch (data->model) { + case SIMCOM_A76XX: + /* ignore NO CARRIER on the AT channel when disconnecting PPP */ + g_at_chat_blacklist_terminator(data->at, + G_AT_CHAT_TERMINATOR_NO_CARRIER); + break; + default: + break; + } + /* power up modem */ g_at_chat_send(data->at, "AT+CFUN=4", NULL, cfun_set_on_cb, modem, NULL);