mac80211: move averaged values out of rx_stats
Move the averaged values out of rx_stats and into rx_stats_avg, to cleanly split them out. The averaged ones cannot be supported for parallel RX in a per-CPU fashion, while the other values can be collected per CPU and then combined/selected when needed. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -61,7 +61,7 @@ static bool rssi_threshold_check(struct ieee80211_sub_if_data *sdata,
|
||||
s32 rssi_threshold = sdata->u.mesh.mshcfg.rssi_threshold;
|
||||
return rssi_threshold == 0 ||
|
||||
(sta &&
|
||||
(s8)-ewma_signal_read(&sta->rx_stats.avg_signal) >
|
||||
(s8)-ewma_signal_read(&sta->rx_stats_avg.signal) >
|
||||
rssi_threshold);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user