mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
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>
This commit is contained in:
parent
f75f5c6f61
commit
6de062ced9
1 changed files with 7 additions and 1 deletions
|
@ -608,6 +608,12 @@ minstrel_ht_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta,
|
||||||
return mac80211_minstrel.get_rate(priv, sta, &msp->legacy, txrc);
|
return mac80211_minstrel.get_rate(priv, sta, &msp->legacy, txrc);
|
||||||
|
|
||||||
info->flags |= mi->tx_flags;
|
info->flags |= mi->tx_flags;
|
||||||
|
|
||||||
|
/* 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);
|
sample_idx = minstrel_get_sample_rate(mp, mi);
|
||||||
|
|
||||||
#ifdef CONFIG_MAC80211_DEBUGFS
|
#ifdef CONFIG_MAC80211_DEBUGFS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue