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-05-28 11:23:20 +08:00
2015-01-27 11:07:35 +01:00
2015-08-13 11:31:45 +02:00
2015-01-27 11:09:13 +01:00
2015-05-28 11:23:20 +08:00
2015-01-27 11:06:09 +01:00
2015-05-28 11:23:20 +08:00
2015-01-27 11:10:13 +01:00
2016-03-08 12:34:12 -05:00
2016-01-14 11:13:17 +01:00
2016-04-05 21:34:49 +02:00
2016-02-24 09:04:19 +01:00
2016-02-24 09:04:38 +01:00
2015-09-22 15:21:25 +02:00
2016-04-05 12:12:26 +02:00
2016-03-01 17:03:27 -05:00
2016-01-14 11:13:17 +01:00
2016-04-05 10:56:34 +02:00
2015-10-21 10:08:22 +02:00
2016-02-24 09:04:20 +01:00
2016-04-06 13:18:16 +02:00
2016-04-05 10:56:33 +02:00
2016-04-05 21:34:53 +02:00
2015-08-14 17:49:53 +02:00
2016-02-24 09:04:39 +01:00
2016-02-24 09:04:38 +01:00
2015-05-11 19:16:04 +02:00
2015-05-05 14:21:56 +02:00
2016-04-05 11:45:51 +02:00
2015-10-14 18:40:26 +02:00
2016-04-05 21:34:49 +02:00
2016-04-05 21:34:51 +02:00
2016-04-06 13:18:15 +02:00
2015-07-17 15:47:11 +02:00
2015-07-17 15:38:06 +02:00
2016-04-05 21:34:53 +02:00
2016-04-05 21:34:53 +02:00
2016-04-05 21:34:21 +02:00
2016-04-06 13:18:15 +02:00
2016-01-14 11:10:14 +01:00
2015-11-03 10:42:05 +01:00
2015-11-03 10:56:42 +01:00
2016-04-05 11:59:05 +02:00
2015-09-29 15:56:47 +02:00
2015-09-29 15:56:47 +02:00
2016-04-05 11:40:06 +02:00
2015-04-01 20:44:32 +02:00
2016-02-02 15:57:02 +01:00
2015-04-01 20:44:33 +02:00
2016-04-06 13:18:17 +02:00
2016-04-05 10:56:28 +02:00
2016-04-06 13:18:17 +02:00
2016-04-06 13:18:17 +02:00
2016-04-06 13:18:16 +02:00
2015-11-03 10:42:47 +01:00
2016-02-24 09:04:38 +01:00
2016-02-24 09:04:38 +01:00
2015-04-07 12:32:09 -04:00
2015-04-07 12:32:09 -04:00
2016-04-05 10:56:34 +02:00
2016-04-05 10:58:21 +02:00
2016-04-05 10:48:56 +02:00
2016-02-24 09:04:40 +01:00
2015-05-11 14:51:29 +02:00
2016-04-05 10:48:56 +02:00
2015-01-27 11:10:13 +01:00