aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNagi Marupaka <nmarupaka@google.com>2023-05-11 03:30:26 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2023-05-12 11:46:17 +0000
commiteeba2ff32b83f96a2f8889962689b47870f6f8a6 (patch)
tree4601192f1349dbe333b8bc1b94d326fdbb0da041 /include
parentaf44e8c1d8abe7f3f913dec7fa385d1dcbbb676b (diff)
broadband-modem-mbim: account for race condition in quick hot swap case
On MBIM modems, when the SIM is ejected and re-inserted in a quick manner, the state machine logic encounters a race condition and eventually, the modem response for subscriber status is ignored. This change accounts for that state transition without erroring out. Fixes #672.
Diffstat (limited to 'include')
-rw-r--r--include/ModemManager-errors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ModemManager-errors.h b/include/ModemManager-errors.h
index 6d3315b5..43b239c5 100644
--- a/include/ModemManager-errors.h
+++ b/include/ModemManager-errors.h
@@ -102,6 +102,7 @@
* @MM_CORE_ERROR_RETRY: Operation cannot yet be performed, retry later.
* @MM_CORE_ERROR_EXISTS: Item already exists.
* @MM_CORE_ERROR_WRONG_SIM_STATE: Operation cannot be executed in the current SIM state. Since 1.20.
+ * @MM_CORE_ERROR_RESET_AND_RETRY: Operation cannot yet be performed, reset the retry count and retry later. Since 1.22.
*
* Common errors that may be reported by ModemManager.
*
@@ -123,6 +124,7 @@ typedef enum { /*< underscore_name=mm_core_error >*/
MM_CORE_ERROR_RETRY = 12, /*< nick=Retry >*/
MM_CORE_ERROR_EXISTS = 13, /*< nick=Exists >*/
MM_CORE_ERROR_WRONG_SIM_STATE = 14, /*< nick=WrongSimState >*/
+ MM_CORE_ERROR_RESET_AND_RETRY = 15, /*< nick=ResetRetry >*/
} MMCoreError;
/**