|
@@ -367,6 +367,11 @@ minstrel_get_rate(void *priv, struct ieee80211_sta *sta,
|
|
return;
|
|
return;
|
|
#endif
|
|
#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) -
|
|
delta = (mi->total_packets * sampling_ratio / 100) -
|
|
(mi->sample_packets + mi->sample_deferred / 2);
|
|
(mi->sample_packets + mi->sample_deferred / 2);
|
|
|
|
|