regulatory: use RCU to protect global and wiphy regdomains
authorJohannes Berg <johannes.berg@intel.com>
Thu, 6 Dec 2012 14:47:38 +0000 (15:47 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:29 +0000 (13:01 +0100)
commit458f4f9e960b9a3b674c4b87d996eef186b1fe83
treefebf655badc2a045b3aaaf63271226729c76e325
parent379b82f4c9dc6e67bf61aa61b096c06a2f320f60
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>
include/net/cfg80211.h
include/net/regulatory.h
net/wireless/nl80211.c
net/wireless/reg.c
net/wireless/reg.h