diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-09-24 14:53:42 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-10-17 08:31:46 +0000 |
commit | 45cf1ba20a59917fb43a60c9851cc89a75844c52 (patch) | |
tree | 4606b5adee97aae8358189378c9d0c9befd607e9 /plugins/cinterion/mm-shared-cinterion.c | |
parent | 57e7841308324340e967db2f0bdfe5a73d63dd2d (diff) |
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.
Diffstat (limited to 'plugins/cinterion/mm-shared-cinterion.c')
-rw-r--r-- | plugins/cinterion/mm-shared-cinterion.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |