linux-mainline/net/wireless
Sven Neumann eac03e3819 cfg80211: hold reg_mutex when updating regulatory
The function wiphy_update_regulatory() uses the static variable
last_request and thus needs to be called with reg_mutex held.
This is the case for all users in reg.c, but the function was
exported for use by wiphy_register(), from where it is called
without the lock being held.

Fix this by making wiphy_update_regulatory() private and introducing
regulatory_update() as a wrapper that acquires and holds the lock.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: Luis R. Rodriguez <mcgrof@gmail.com>
Cc: Daniel Mack <daniel@zonque.org>
Cc: linux-wireless@vger.kernel.org
Acked-by:  Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-09-14 13:26:39 -04:00
..
.gitignore
chan.c
core.c cfg80211: hold reg_mutex when updating regulatory 2011-09-14 13:26:39 -04:00
core.h cfg80211: hold reg_mutex when updating regulatory 2011-09-14 13:26:39 -04:00
db.txt
debugfs.c
debugfs.h
ethtool.c
ethtool.h
genregdb.awk
ibss.c
Kconfig
lib80211_crypt_ccmp.c wireless: Remove unnecessary OOM logging messages 2011-09-13 15:45:02 -04:00
lib80211_crypt_tkip.c wireless: Remove unnecessary OOM logging messages 2011-09-13 15:45:02 -04:00
lib80211_crypt_wep.c wireless: Remove unnecessary OOM logging messages 2011-09-13 15:45:02 -04:00
lib80211.c lib80211: remove exports for functions not called by other modules 2011-08-09 15:42:36 -04:00
Makefile
mesh.c {nl,cfg,mac}80211: let userspace make meshif mesh gate 2011-08-24 13:59:43 -04:00
mlme.c cfg80211/nl80211: support GTK rekey offload 2011-07-06 15:05:42 -04:00
nl80211.c nl80211/cfg80211: add match filtering for sched_scan 2011-09-13 15:53:45 -04:00
nl80211.h cfg80211/nl80211: support GTK rekey offload 2011-07-06 15:05:42 -04:00
radiotap.c
reg.c cfg80211: hold reg_mutex when updating regulatory 2011-09-14 13:26:39 -04:00
reg.h cfg80211: hold reg_mutex when updating regulatory 2011-09-14 13:26:39 -04:00
regdb.h
scan.c cfg80211: split wext compatibility to separate header 2011-08-08 14:24:59 -04:00
sme.c cfg80211: Use consistent BSS matching between scan and sme 2011-05-19 10:37:18 -04:00
sysfs.c
sysfs.h
util.c wireless: Remove unnecessary OOM logging messages 2011-09-13 15:45:02 -04:00
wext-compat.c cfg80211: remove unused wext handler exports 2011-08-08 14:26:29 -04:00
wext-compat.h cfg80211: remove unused wext handler exports 2011-08-08 14:26:29 -04:00
wext-core.c
wext-priv.c
wext-proc.c
wext-sme.c cfg80211: remove unused wext handler exports 2011-08-08 14:26:29 -04:00
wext-spy.c