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:
73b1658
)
mac80211: minstrel: avoid port control frames for sampling
author
Thomas Huehn
<thomas.huehn@evernet-eg.de>
Wed, 14 Dec 2016 19:47:03 +0000
(20:47 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 15 Dec 2016 10:07:53 +0000
(11:07 +0100)
Makes connections more reliable
Signed-off-by: Thomas Huehn <thomas.huehn@evernet-eg.de>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel.c
patch
|
blob
|
history
diff --git
a/net/mac80211/rc80211_minstrel.c
b/net/mac80211/rc80211_minstrel.c
index 11a4cc393a982f186c2cc738f405b957e046e2a6..3ebe4405a2d43d66f76bdef3fd4f10cd3fa82b8f 100644
(file)
--- a/
net/mac80211/rc80211_minstrel.c
+++ b/
net/mac80211/rc80211_minstrel.c
@@
-367,6
+367,11
@@
minstrel_get_rate(void *priv, struct ieee80211_sta *sta,
return;
#endif
+ /* Don't use EAPOL frames for sampling on non-mrr hw */
+ if (mp->hw->max_rates == 1 &&
+ (info->control.flags & IEEE80211_TX_CTRL_PORT_CTRL_PROTO))
+ return;
+
delta = (mi->total_packets * sampling_ratio / 100) -
(mi->sample_packets + mi->sample_deferred / 2);