keep the client id if user-specified
authorFelix Fietkau <nbd@openwrt.org>
Tue, 5 Mar 2013 13:34:37 +0000 (14:34 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 5 Mar 2013 13:34:37 +0000 (14:34 +0100)
dev.c

diff --git a/dev.c b/dev.c
index 76a8f30a0c08b304b4771ddd3c61702689c7806a..68d404c2cbc0235a936c90356c4ce62c192953e3 100644 (file)
--- 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;