Skip to content

Commit

Permalink
Ignored incorrect rx accounting.
Browse files Browse the repository at this point in the history
Signed-off-by: David Lin <dlin@marvell.com>
  • Loading branch information
yuhhaurlin committed Jul 10, 2017
1 parent 4fd0788 commit 8a71713
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hif/pcie/pcie.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8a71713

Please sign in to comment.