Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 332b0b6f authored by Chris Lew's avatar Chris Lew
Browse files

soc: qcom: qmi_interface: Parse all control packets



There are some control packets such as DEL_CLIENT that will not always
match the local node address. All packets addressed to the control port
should be decoded as qrtr control packets.

Change-Id: I46b366c77fd2d8defc203e0c74181a228710c48e
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent b482a807
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -556,8 +556,7 @@ static void qmi_data_ready_work(struct work_struct *work)
			break;
		}

		if (sq.sq_node == qmi->sq.sq_node &&
		    sq.sq_port == QRTR_PORT_CTRL) {
		if (sq.sq_port == QRTR_PORT_CTRL) {
			qmi_recv_ctrl_pkt(qmi, qmi->recv_buf, msglen);
		} else if (ops->msg_handler) {
			ops->msg_handler(qmi, &sq, qmi->recv_buf, msglen);