aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-net.c
diff options
context:
space:
mode:
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>2024-04-01 13:49:26 +0200
committerMaciej S. Szmigiero <mail@maciej.szmigiero.name>2024-04-01 18:40:15 +0200
commitc56e1f473991f363078557c9c1bc2600eaf0fcb1 (patch)
tree4780bf98c0c0278cecfdc7e1abc1cb85fab0ec5d /src/mm-port-net.c
parent852bf39c4f0e992a79ad1426f8c7f08fc5cd7fe6 (diff)
iface-modem-location: fix zeroing capabilities on reinitialization
The modem location interface loads modem location capabilities only during the very first initialization of this interface. On each later reinitialization it skips loading these capabilities from modem, however it still goes through the whole interface initialization state machine. This state machine uses its own "ctx->capabilities" field for temporary capabilities storage, which is set to MM_MODEM_LOCATION_SOURCE_NONE at the start of the initialization process. However, if we aren't actually loading modem location capabilities because we're only reinitializing the interface we still need to set this "ctx->capabilities" field to the existing (previously loaded) modem location capabilities. Otherwise the next interface initialization step (validation) will permanently disable the whole location interface.
Diffstat (limited to 'src/mm-port-net.c')
0 files changed, 0 insertions, 0 deletions