From 45cf1ba20a59917fb43a60c9851cc89a75844c52 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 24 Sep 2019 14:53:42 +0200 Subject: [PATCH] cinterion: don't cache voice support check AT commands The result of these commands may be different before and after SIM-PIN unlock, so never cache them. --- plugins/cinterion/mm-shared-cinterion.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/cinterion/mm-shared-cinterion.c b/plugins/cinterion/mm-shared-cinterion.c index 8c5c4836..23f3fe15 100644 --- a/plugins/cinterion/mm-shared-cinterion.c +++ b/plugins/cinterion/mm-shared-cinterion.c @@ -1315,7 +1315,10 @@ parent_voice_check_support_ready (MMIfaceModemVoice *self, mm_base_modem_at_command (MM_BASE_MODEM (self), "^SLCC=?", 3, - TRUE, + /* Do NOT cache as the reply may be different if PIN locked + * or unlocked. E.g. we may not support ^SLCC for emergency + * voice calls. */ + FALSE, (GAsyncReadyCallback) slcc_format_check_ready, task); }