From 8a717138b98e38d44e71427ef9c07eabcd5d9865 Mon Sep 17 00:00:00 2001 From: David Lin Date: Mon, 10 Jul 2017 12:16:09 +0800 Subject: [PATCH] Ignored incorrect rx accounting. Signed-off-by: David Lin --- hif/pcie/pcie.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hif/pcie/pcie.c b/hif/pcie/pcie.c index 8d62a3c4..92f28e08 100644 --- a/hif/pcie/pcie.c +++ b/hif/pcie/pcie.c @@ -963,11 +963,15 @@ static void pcie_account_rx_status(struct mwl_priv *priv, return; break; case RX_RATE_INFO_FORMAT_11N: + if ((sig1 & 0x3f) >= 16) + return; bw = (sig1 >> 7) & 0x1; gi = (sig2 >> 7) & 0x1; rate_mcs = sig1 & 0x3F; break; case RX_RATE_INFO_FORMAT_11AC: + if (((sig2 >> 4) & 0xf) >= 10) + return; nss = (sig1 >> 10) & 0x3; bw = sig1 & 0x3; gi = sig2 & 0x1;