aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2022-05-19 12:30:34 +0200
committerAleksander Morgado <aleksander@aleksander.es>2022-05-19 11:45:37 +0000
commitc659492022c707a52853cb1f3c92d76ea8f4158b (patch)
treea98ddaa7b6515fedd58c1a91e0c2c03b64eb1612 /src/mm-iface-modem.c
parent7de4d6673bb5fd0e4ab36ce195b25bb5a20b4a9b (diff)
xmm: wait for +XLSRSTOP URC before starting next session
It is important to gracefully stop the session before starting the next session, making sure the engine is completely stopped. This can be ensured by waiting for the +XLSRSTOP URC just after having received the +XLSRSTOP command response. We'll do an explicit wait for that URC with a 10s timeout, in order to avoid waiting forever if the URC is never received. It will be assumed that the engine is off if the 10s timeout happens, in the same way as we were doing until now. During the wait time for the URC, the operation task ownership is shared among the response processor, the URC handler and the timeout source. Once any of them decides to complete the task, the others will automatically avoid attempting to complete the same task. Based on a patch originally developed by: Som_SP <somashekhar.puttagangaiah@intel.com>
Diffstat (limited to 'src/mm-iface-modem.c')
0 files changed, 0 insertions, 0 deletions