summaryrefslogtreecommitdiff
path: root/crypto/md4.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-03-31 17:02:08 (GMT)
committerJohannes Berg <johannes.berg@intel.com>2016-04-06 11:18:17 (GMT)
commit4f6b1b3daaf167bf927174224e07efd17ed95984 (patch)
tree5591e35073577767d0ffb3eadaf74a3a2e0ce9ae /crypto/md4.c
parentb8da6b6a99b4b0d8d464b621ba7dcbcb08172b7d (diff)
downloadlinux-4f6b1b3daaf167bf927174224e07efd17ed95984.tar.xz
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>
Diffstat (limited to 'crypto/md4.c')
0 files changed, 0 insertions, 0 deletions