]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: use u64_stats_t with u64_stats_sync properly
authorDavid Yang <mmyangfl@gmail.com>
Fri, 23 Jan 2026 20:38:40 +0000 (04:38 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 27 Jan 2026 12:43:49 +0000 (13:43 +0100)
commit95110e5736d054771c92d14b3b4a13ca6dead519
treecba8414c05655c3462c04369d3e7df0768c5bb48
parent9b50d9c06c275419ac36de8b5a5dd1ed6b522770
wifi: mac80211: use u64_stats_t with u64_stats_sync properly

On 64bit arches, struct u64_stats_sync is empty and provides no help
against load/store tearing. Convert to u64_stats_t to ensure atomic
operations.

Signed-off-by: David Yang <mmyangfl@gmail.com>
Link: https://patch.msgid.link/20260123203845.2915525-1-mmyangfl@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c
net/mac80211/sta_info.c
net/mac80211/sta_info.h