summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/p54/p54.h
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2008-08-04 02:58:36 +0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-04 23:09:12 +0400
commit6041e2a08c50e3fcaf1e56422bfafda62c597cea (patch)
tree515d1d222f9323232da46aa024cb38e707481a1f /drivers/net/wireless/p54/p54.h
parentd06193f311102b2c990ec5f66b470ea49ecc73a4 (diff)
downloadlinux-6041e2a08c50e3fcaf1e56422bfafda62c597cea.tar.xz
p54: Fix potential concurrent access to private data
Experience with the rtl8187 driver has shown that mac80211 can make calls to the config callback routine in rapid succession. This patch creates a mutex that protects the private data in several of the routines called by mac80211. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54.h')
-rw-r--r--drivers/net/wireless/p54/p54.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/p54.h b/drivers/net/wireless/p54/p54.h
index c6f27b9022f9..cac9a515b82d 100644
--- a/drivers/net/wireless/p54/p54.h
+++ b/drivers/net/wireless/p54/p54.h
@@ -52,6 +52,7 @@ struct p54_common {
int (*open)(struct ieee80211_hw *dev);
void (*stop)(struct ieee80211_hw *dev);
int mode;
+ struct mutex conf_mutex;
u8 mac_addr[ETH_ALEN];
u8 bssid[ETH_ALEN];
struct pda_iq_autocal_entry *iq_autocal;