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

Commit 3b51299f authored by Ravi Aravamudhan's avatar Ravi Aravamudhan
Browse files

diag: Consider delayed responses while recording packet statistics



Diag driver was ignoring delayed response type packets while
recording packet allocation and drop statistics which results in
erroneous prints. This patch solves this issue.

Change-Id: I299f341a91c027c7cc5ee185b854ca5ad1bcc114
Signed-off-by: default avatarRavi Aravamudhan <aravamud@codeaurora.org>
parent f388a43a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -482,6 +482,9 @@ void diag_record_stats(int type, int flag)
		pr_err_ratelimited("diag: In %s, dropping response. This shouldn't happen\n",
				   __func__);
		return;
	case DATA_TYPE_DELAYED_RESPONSE:
		/* No counters to increase for Delayed responses */
		return;
	default:
		pr_err_ratelimited("diag: In %s, invalid pkt_type: %d\n",
				   __func__, type);