broadband-modem: 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.
This commit is contained in:
Aleksander Morgado
2019-10-17 08:31:46 +00:00
parent 5fef14176a
commit 98066d24b7
+5 -2
View File
@@ -7379,7 +7379,10 @@ ath_format_check_ready (MMBroadbandModem *self,
mm_base_modem_at_command (MM_BASE_MODEM (self),
"+CLCC=?",
3,
TRUE,
/* Do NOT cache as the reply may be different if PIN locked
* or unlocked. E.g. we may not support +CLCC for emergency
* voice calls. */
FALSE,
(GAsyncReadyCallback)clcc_format_check_ready,
task);
}
@@ -7399,7 +7402,7 @@ modem_voice_check_support (MMIfaceModemVoice *self,
mm_base_modem_at_command (MM_BASE_MODEM (self),
"H",
3,
TRUE,
FALSE,
(GAsyncReadyCallback)ath_format_check_ready,
task);
}