wil6210: add per-MCS Rx stats
[deliverable/linux.git] / drivers / net / wireless / ath / wil6210 / txrx.c
index 0113dac3a9a9f33b6190609e26057777a35aa8ff..aa20af86e1d61e790a4ba054c9db383ec2968b15 100644 (file)
@@ -427,6 +427,8 @@ static struct sk_buff *wil_vring_reap_rx(struct wil6210_priv *wil,
        cid = wil_rxdesc_cid(d);
        stats = &wil->sta[cid].stats;
        stats->last_mcs_rx = wil_rxdesc_mcs(d);
+       if (stats->last_mcs_rx < ARRAY_SIZE(stats->rx_per_mcs))
+               stats->rx_per_mcs[stats->last_mcs_rx]++;
 
        /* use radiotap header only if required */
        if (ndev->type == ARPHRD_IEEE80211_RADIOTAP)
This page took 0.025927 seconds and 5 git commands to generate.