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>
Showing
- include/net/cfg80211.h 1 addition, 1 deletioninclude/net/cfg80211.h
- include/net/regulatory.h 2 additions, 0 deletionsinclude/net/regulatory.h
- net/wireless/nl80211.c 18 additions, 17 deletionsnet/wireless/nl80211.c
- net/wireless/reg.c 66 additions, 47 deletionsnet/wireless/reg.c
- net/wireless/reg.h 1 addition, 1 deletionnet/wireless/reg.h
Loading
Please register or sign in to comment