<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>Has anyone faced an error like this before, when trying to use qmi_device_release_client():</div><div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div dir="ltr"><div><div><div><b>"error: couldn't release client: endpoint hangup"</b></div></div></div></div></div></blockquote><div dir="ltr"><div dir="ltr"><div><br></div><div>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...</div><div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><div><div><b>--------START------------</b></div></div></div></div></div><div><div><div> * <span class="gmail-il">qmi_device_new</span>()</div></div></div><div><div><div>* qmi_device_open() </div></div></div><div><div><div> * qmi_device_allocate_client (<span class="gmail-il">device</span>, WDS)</div></div></div><div><div><div>// Any other settings needed before start_network, like ip, apn etc...</div></div></div><div><div><div> * qmi_client_wds_start_network(client, ...)    --> returns packet-data-handle</div></div></div><div><div><div> * qmi_device_release_client(device,client) with client_no_release_cid_flag</div></div></div><div><div><div>* qmi_device_close_async()</div></div></div><div><div><div><br></div></div></div><div><div><div><b>--------STOP-----------</b></div></div></div><div><div><div><div> * <span class="gmail-il">qmi_device_new</span>()</div></div></div></div><div><div><div><div>* qmi_device_open() </div></div></div></div><div><div><div><div> * qmi_device_allocate_client (<span class="gmail-il">device</span>, WDS)</div></div></div></div><div><div><div><div> * qmi_client_wds_stop_network(client, ...)    --> need to provide packet-data-handle</div></div></div></div><div><div><div><div> * qmi_device_release_client(device,client) with NO client_no_release_cid_flag</div></div></div></div><div><div><div><div>* qmi_device_close_async()</div></div></div></div></blockquote><div dir="ltr"><div dir="ltr"><div><br></div><div>Please share your thoughts when possible.</div><div><br></div><div>Kind regards,</div><div>Sai.</div><div><br></div><div> <br></div></div></div></div>