aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-modem.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2018-01-11 23:47:28 -0800
committerAleksander Morgado <aleksander@aleksander.es>2018-01-12 12:24:13 +0100
commitc9e85b67164f81310d1a7ca0bffbb8c938a6a943 (patch)
tree2b70da0399176416b034577ac3e803459a72a8de /cli/mmcli-modem.c
parentd8c7251687dca8c4aca059428d374d06cbdc9e79 (diff)
iface-modem-3gpp: ignore initial registration check result when appropriate
When a modem is being enabled, an initial registration check is scheduled to determine the current registration state and access technology. The initial registration check is performed asynchronously and may not complete before the modem state is transitioned to 'enabled'. When the modem is disabled shortly afterwards, the registration state is transitioned to 'unknown' and the modem state is transitioned to 'disabled'. But the completion of the initial registration check after that can transition the registration state and modem state to a wrong state. This patch addresses the issue by ignoring a registration state update if the modem isn't already enabled or being enabled.
Diffstat (limited to 'cli/mmcli-modem.c')
0 files changed, 0 insertions, 0 deletions