diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2024-03-26 09:56:38 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2024-03-27 12:09:32 +0000 |
commit | 4ed45af376b511d5fecd43d24821b652e0ebc96b (patch) | |
tree | 491cbb22d078e9ef4b969b1ead72e64443235ef9 /src/plugins/quectel/mm-shared-quectel.c | |
parent | 4ef5ab6db7f506ef69388bf44acbf01c25b4c5d4 (diff) |
broadband-modem: track primary/secondary ports while enabling/disabling 3GPP URCs
We should not blindly assume that peek_port_primary() always returns a
valid port, because the device may have been ejected while the AT
sequence is running.
Instead, keep a valid port object reference in the operation context,
and use it in all the AT command requests. The requests will fail if
the device has been ejected, but the port object reference will be
valid and the daemon won't crash.
Diffstat (limited to 'src/plugins/quectel/mm-shared-quectel.c')
0 files changed, 0 insertions, 0 deletions