projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f75f5c6
)
mac80211: Don't use EAPOL frames for rate sampling
author
Helmut Schaa
<
[email protected]
>
Mon, 1 Aug 2011 09:32:53 +0000
(11:32 +0200)
committer
John W. Linville
<
[email protected]
>
Tue, 9 Aug 2011 19:52:02 +0000
(15:52 -0400)
Signed-off-by: Helmut Schaa <
[email protected]
>
Acked-by: Felix Fietkau <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
net/mac80211/rc80211_minstrel_ht.c
patch
|
blob
|
history
diff --git
a/net/mac80211/rc80211_minstrel_ht.c
b/net/mac80211/rc80211_minstrel_ht.c
index 66a1eeb279c697f1fc11f0bc0ef17f5fbcd0d40b..21588386a30207598d9d565841f8f4caaaa08d50 100644
(file)
--- 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,
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 */