Johannes Berg 4f6b1b3daa mac80211: fix last RX rate data consistency
When storing the last_rate_* values in the RX code, there's nothing
to guarantee consistency, so a concurrent reader could see, e.g.
last_rate_idx on the new value, but last_rate_flag still on the old,
getting completely bogus values in the end.

To fix this, I lifted the sta_stats_encode_rate() function from my
old rate statistics code, which encodes the entire rate data into a
single 16-bit value, avoiding the consistency issue.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-04-06 13:18:17 +02:00
..
2015-01-27 11:07:35 +01:00
2015-01-27 11:09:13 +01:00
2015-08-14 17:49:53 +02:00
2015-05-11 19:16:04 +02:00
2015-10-14 18:40:26 +02:00
2015-11-03 10:42:47 +01:00
2015-05-11 14:51:29 +02:00