diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-06-07 15:16:49 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-06-28 08:17:25 +0000 |
commit | 7e3863897e73227a7de54db967fd95b40a8833d1 (patch) | |
tree | d6ae45037c8ed5527520bb79203b2e3bc25a7bf6 /src/mm-base-modem-at.h | |
parent | 408e9f327e09cda73ab87c92aab34176186d2c3d (diff) |
broadband-modem: run implicit disabling if enabling fails
The disabling sequence is updated so that the steps to disable the
interfaces never fail. This is done so that the modem is not left
in an "inconsistent" enabled state, if e.g. the modem is enabled and
one of the disabling steps for the interfaces ends up failing. In this
case, it is preferred to say that the modem is disabled, than having
it wrongly enabled.
The enabling sequence is updated so that if any of the steps to enable
the interfaces fail, we end up running an implicit disabling operation
to disable all the interfaces. This is to attempt to cleanup whatever
we had enabled during the enabling operation, including e.g. the open
ports context.
Diffstat (limited to 'src/mm-base-modem-at.h')
0 files changed, 0 insertions, 0 deletions