From: Felix Fietkau Date: Tue, 5 Mar 2013 13:34:37 +0000 (+0100) Subject: keep the client id if user-specified X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b61b3e8ff2b29e08b53eabc7b813c1c87c734947;p=oweals%2Fuqmi.git keep the client id if user-specified --- diff --git a/dev.c b/dev.c index 76a8f30..68d404c 100644 --- a/dev.c +++ b/dev.c @@ -230,6 +230,8 @@ int qmi_service_connect(struct qmi_dev *qmi, QmiService svc, int client_id) return req.req.ret; client_id = req.cid; + } else { + qmi->service_keep_cid |= (1 << idx); } qmi->service_data[idx].connected = true;