Skip to content

Commit

Permalink
mac80211: Don't use EAPOL frames for rate sampling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Helmut Schaa authored and John W. Linville committed Aug 9, 2011
1 parent f75f5c6 commit 6de062c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion net/mac80211/rc80211_minstrel_ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,13 @@ minstrel_ht_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta,
return mac80211_minstrel.get_rate(priv, sta, &msp->legacy, txrc);

info->flags |= mi->tx_flags;
sample_idx = minstrel_get_sample_rate(mp, mi);

/* Don't use EAPOL frames for sampling on non-mrr hw */
if (mp->hw->max_rates == 1 &&
txrc->skb->protocol == cpu_to_be16(ETH_P_PAE))
sample_idx = -1;
else
sample_idx = minstrel_get_sample_rate(mp, mi);

#ifdef CONFIG_MAC80211_DEBUGFS
/* use fixed index if set */
Expand Down

0 comments on commit 6de062c

Please sign in to comment.