diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2008-08-03 22:58:36 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-04 19:09:12 (GMT) |
commit | 6041e2a08c50e3fcaf1e56422bfafda62c597cea (patch) | |
tree | 515d1d222f9323232da46aa024cb38e707481a1f /drivers/net/wireless/p54/p54.h | |
parent | d06193f311102b2c990ec5f66b470ea49ecc73a4 (diff) | |
download | linux-fsl-qoriq-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/p54.h b/drivers/net/wireless/p54/p54.h index c6f27b9..cac9a51 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; |