diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-12-06 09:47:38 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-01-03 07:01:29 -0500 |
commit | 458f4f9e960b9a3b674c4b87d996eef186b1fe83 (patch) | |
tree | febf655badc2a045b3aaaf63271226729c76e325 /include/net/cfg80211.h | |
parent | 379b82f4c9dc6e67bf61aa61b096c06a2f320f60 (diff) |
regulatory: use RCU to protect global and wiphy regdomains
To simplify the locking and not require cfg80211_mutex
(which nl80211 uses to access the global regdomain) and
also to make it possible for drivers to access their
wiphy->regd safely, use RCU to protect these pointers.
Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index c222e5fbf53a..f3be58a29642 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -2369,7 +2369,7 @@ struct wiphy { | |||
2369 | 2369 | ||
2370 | /* fields below are read-only, assigned by cfg80211 */ | 2370 | /* fields below are read-only, assigned by cfg80211 */ |
2371 | 2371 | ||
2372 | const struct ieee80211_regdomain *regd; | 2372 | const struct ieee80211_regdomain __rcu *regd; |
2373 | 2373 | ||
2374 | /* the item in /sys/class/ieee80211/ points to this, | 2374 | /* the item in /sys/class/ieee80211/ points to this, |
2375 | * you need use set_wiphy_dev() (see below) */ | 2375 | * you need use set_wiphy_dev() (see below) */ |