QMI fails to release client

Sai Chaitanya msaichaitanya at gmail.com
Fri Mar 26 08:20:15 UTC 2021


Hi all,

Has anyone faced an error like this before, when trying to use
qmi_device_release_client():

*"error: couldn't release client: endpoint hangup"*


Background: I want to start/stop the modem with QMI APIs. If I look at
qmicli.c, it is a little confusing as to why start/stop go through the same
chain of APIs, except that in "start", the client is released
with client_no_release_cid_flag. In other words, from the code, the
"start/stop" routine looks like this...

*--------START------------*
 * qmi_device_new()
* qmi_device_open()
 * qmi_device_allocate_client (device, WDS)
// Any other settings needed before start_network, like ip, apn etc...
 * qmi_client_wds_start_network(client, ...)    --> returns
packet-data-handle
 * qmi_device_release_client(device,client) with client_no_release_cid_flag
* qmi_device_close_async()

*--------STOP-----------*
 * qmi_device_new()
* qmi_device_open()
 * qmi_device_allocate_client (device, WDS)
 * qmi_client_wds_stop_network(client, ...)    --> need to provide
packet-data-handle
 * qmi_device_release_client(device,client) with NO
client_no_release_cid_flag
* qmi_device_close_async()


Please share your thoughts when possible.

Kind regards,
Sai.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20210326/54461148/attachment.htm>


More information about the libqmi-devel mailing list