wifi: mac80211: add vif/sta link RCU dereference macros
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 Sep 2022 14:12:52 +0000 (16:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 6 Sep 2022 08:14:45 +0000 (10:14 +0200)
commit65fd846cb3f94ae63134fbd0f32564cf82539eaa
tree1aa2072bd6c880a57f591acceacce8e0cd25c0d8
parent5fc8cea93e125686369efd478ff7670d0ddc13b6
wifi: mac80211: add vif/sta link RCU dereference macros

Add macros (and an exported function) to allow checking some
link RCU protected accesses that are happening in callbacks
from mac80211 and are thus under the correct lock.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c
include/net/mac80211.h
net/mac80211/sta_info.c