diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2011-08-01 05:32:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-09 15:52:02 -0400 |
commit | 6de062ced91d894936edc54d79158b9f69f85d0e (patch) | |
tree | a2161aa65c5f9cb1f2d49d29862688bc5b4bd66c /net | |
parent | f75f5c6f61b4d34bf92625fcd1131dd58921e1b5 (diff) |
mac80211: Don't use EAPOL frames for rate sampling
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/rc80211_minstrel_ht.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index 66a1eeb279c6..21588386a302 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c | |||
@@ -608,7 +608,13 @@ minstrel_ht_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta, | |||
608 | return mac80211_minstrel.get_rate(priv, sta, &msp->legacy, txrc); | 608 | return mac80211_minstrel.get_rate(priv, sta, &msp->legacy, txrc); |
609 | 609 | ||
610 | info->flags |= mi->tx_flags; | 610 | info->flags |= mi->tx_flags; |
611 | sample_idx = minstrel_get_sample_rate(mp, mi); | 611 | |
612 | /* Don't use EAPOL frames for sampling on non-mrr hw */ | ||
613 | if (mp->hw->max_rates == 1 && | ||
614 | txrc->skb->protocol == cpu_to_be16(ETH_P_PAE)) | ||
615 | sample_idx = -1; | ||
616 | else | ||
617 | sample_idx = minstrel_get_sample_rate(mp, mi); | ||
612 | 618 | ||
613 | #ifdef CONFIG_MAC80211_DEBUGFS | 619 | #ifdef CONFIG_MAC80211_DEBUGFS |
614 | /* use fixed index if set */ | 620 | /* use fixed index if set */ |