summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2026-10-06 12:04:14 +0200
committerJohannes Berg <johannes.berg@intel.com>2026-10-09 16:12:48 +0200
commit17a3455f15c0a4edbcbad625ef227558499ea98f (patch)
tree01bda375ae9dec6c3b579f405904a9e0eb00679d /include
parent04655cc0d2a15a89a3869898303620094ee23e14 (diff)
wifi: nl80211: read WMM reg rule under RCU
freq_reg_info() returns a pointer into the current regdomain, so we need RTNL, cfg80211_mutex or RCU, but I want to remove the RTNL, so just use RCU here. Also document that this is required, we didn't say when the function could be used at all. Link: https://patch.msgid.link/20261006120655.c6fce71ad991.I07ae7ed37bc8ff6d75c87e19d77e4c5379a8e167@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/cfg80211.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 5ae97e72cef2..f2cf71a75b2d 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -8197,6 +8197,8 @@ void wiphy_apply_custom_regulatory(struct wiphy *wiphy,
* it wants to follow we respect that unless a country IE has been received
* and processed already.
*
+ * Must be called within an RCU read-side critical section.
+ *
* Return: A valid pointer, or, when an error occurs, for example if no rule
* can be found, the return value is encoded using ERR_PTR(). Use IS_ERR() to
* check and PTR_ERR() to obtain the numeric return value. The numeric return