summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dev.c b/dev.c
index 4bca429..bd10207 100644
--- a/dev.c
+++ b/dev.c
@@ -96,6 +96,9 @@ static void qmi_process_msg(struct qmi_dev *qmi, struct qmi_msg *msg)
struct qmi_request *req;
uint16_t tid;
+ if (msg->flags != QMI_CTL_FLAG_RESPONSE && msg->flags != QMI_SERVICE_FLAG_RESPONSE)
+ return;
+
if (msg->qmux.service == QMI_SERVICE_CTL)
tid = msg->ctl.transaction;
else