OpenCloudOS-Kernel/drivers/net/wireless/iwlwifi
Reinette Chatre 9c5ac091b2 iwlwifi: fix and add missing sta_lock usage
There are a few places where sta_lock is used, but the
station information protected by it is accessed outside
of the lock. Address this in two ways, if the access
won't sleep then just move the access into the lock, if
the access can sleep then copy the needed station
information to the stack to be accessed without risk of
it changing while access in progress.

Additionally, a number of other places access station
station information without holding the sta_lock, fix
those as well.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2010-05-13 10:44:16 -07:00
..
Kconfig iwlwifi: cleanup spectrum measurement command support 2010-01-25 16:36:26 -05:00
Makefile iwl3945: add ucode statistics 2010-04-30 15:34:31 -07:00
iwl-1000.c iwlwifi: rework broadcast station management 2010-05-10 15:09:02 -07:00
iwl-3945-debugfs.c iwlwifi: separate statistics flag function for agn & 3945 2010-05-13 10:42:55 -07:00
iwl-3945-debugfs.h iwl3945: add ucode statistics 2010-04-30 15:34:31 -07:00
iwl-3945-fh.h iwlwifi: update copyright year to 2010 2010-01-19 16:25:15 -05:00
iwl-3945-hw.h iwlwifi: code cleanup for generic defines 2010-04-02 12:52:17 -07:00
iwl-3945-led.c iwlwifi: update copyright year to 2010 2010-01-19 16:25:15 -05:00
iwl-3945-led.h iwlwifi: update copyright year to 2010 2010-01-19 16:25:15 -05:00
iwl-3945-rs.c iwlwifi: fix compile warnings when compiling without debug 2010-04-09 11:32:36 -07:00
iwl-3945.c iwlwifi: fix and add missing sta_lock usage 2010-05-13 10:44:16 -07:00
iwl-3945.h iwlwifi: track station IDs 2010-05-10 15:09:04 -07:00
iwl-4965-hw.h iwlwifi: code cleanup for generic defines 2010-04-02 12:52:17 -07:00
iwl-4965.c iwlwifi: fix and add missing sta_lock usage 2010-05-13 10:44:16 -07:00
iwl-5000-hw.h iwlwifi: move hw related defines to separate file 2010-03-25 11:18:05 -07:00
iwl-5000.c iwlwifi: move _agn statistics related structure 2010-05-13 10:42:45 -07:00
iwl-6000-hw.h iwlwifi: update copyright year to 2010 2010-01-19 16:25:15 -05:00
iwl-6000.c iwlwifi: rework broadcast station management 2010-05-10 15:09:02 -07:00
iwl-agn-debugfs.c iwlwifi: separate statistics flag function for agn & 3945 2010-05-13 10:42:55 -07:00
iwl-agn-debugfs.h iwlwifi: add debugfs ops to iwlwifi 2010-04-16 13:51:31 -07:00
iwl-agn-hcmd.c iwlwifi: make BT coex config a virtual method 2010-04-16 13:53:34 -07:00
iwl-agn-hw.h iwlwifi: code cleanup for generic defines 2010-04-02 12:52:17 -07:00
iwl-agn-ict.c iwlwifi: change spin_lock to spin_lock_irqsave 2010-03-25 11:22:08 -07:00
iwl-agn-led.c iwlwifi: update copyright year to 2010 2010-01-19 16:25:15 -05:00
iwl-agn-led.h iwlwifi: update copyright year to 2010 2010-01-19 16:25:15 -05:00
iwl-agn-lib.c iwlwifi: fix and add missing sta_lock usage 2010-05-13 10:44:16 -07:00
iwl-agn-rs.c iwlwifi: recalculate average tpt if not current 2010-05-04 13:24:22 -04:00
iwl-agn-rs.h iwlwifi: implement new mac80211 station add/remove calls 2010-03-19 13:40:58 -07:00
iwl-agn-tx.c iwlwifi: fix and add missing sta_lock usage 2010-05-13 10:44:16 -07:00
iwl-agn-ucode.c iwlwifi: remove ucode virtual functions 2010-05-10 15:08:54 -07:00
iwl-agn.c iwlwifi: move _agn statistics related structure 2010-05-13 10:42:45 -07:00
iwl-agn.h iwlwifi: move iwl_free_tfds_in_queue to iwlagn 2010-05-13 10:43:45 -07:00
iwl-calib.c Merge branch 'wireless-2.6' into wireless-next-2.6 2010-04-16 13:43:40 -07:00
iwl-calib.h iwlwifi: update copyright year to 2010 2010-01-19 16:25:15 -05:00
iwl-commands.h iwlwifi: remove IWL_MULTICAST_ID 2010-05-13 10:44:05 -07:00
iwl-core.c iwlwifi: rework broadcast station management 2010-05-10 15:09:02 -07:00
iwl-core.h iwlwifi: move iwl_free_tfds_in_queue to iwlagn 2010-05-13 10:43:45 -07:00
iwl-csr.h iwlwifi: add hw revision for 6000g2 NIC 2010-04-16 13:52:45 -07:00
iwl-debug.h iwlwifi: add debugfs ops to iwlwifi 2010-04-16 13:51:31 -07:00
iwl-debugfs.c iwlwifi: improve station debugfs 2010-05-13 10:43:56 -07:00
iwl-dev.h iwlwifi: fix and add missing sta_lock usage 2010-05-13 10:44:16 -07:00
iwl-devtrace.c iwlwifi: move agn only tx functions from iwlcore to iwlagn 2010-03-25 11:19:27 -07:00
iwl-devtrace.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2010-01-23 00:31:06 -08:00
iwl-eeprom.c iwlwifi: move eeprom version printout to eeprom init 2010-05-10 15:08:54 -07:00
iwl-eeprom.h iwlwifi: bring up 6000 Series 2x2 AGN Gen2 adapters 2010-04-16 13:48:06 -07:00
iwl-fh.h iwlwifi: update copyright year to 2010 2010-01-19 16:25:15 -05:00
iwl-hcmd.c iwlwifi: remove trailing space in messages 2010-04-02 12:53:54 -07:00
iwl-helpers.h iwlwifi: don't crash on firmware file missing info 2010-05-13 10:43:06 -07:00
iwl-io.h iwlwifi: remove trailing space in messages 2010-04-02 12:53:54 -07:00
iwl-led.c iwlwifi: remove "\n" from module parameter description 2010-03-25 11:21:11 -07:00
iwl-led.h iwlwifi: update copyright year to 2010 2010-01-19 16:25:15 -05:00
iwl-power.c iwlwifi: remove useless priv->vif check 2010-05-10 15:08:59 -07:00
iwl-power.h iwlwifi: update copyright year to 2010 2010-01-19 16:25:15 -05:00
iwl-prph.h iwlwifi: more code clean up for agn devices 2010-04-16 13:53:20 -07:00
iwl-rx.c iwlwifi: move _agn statistics related structure 2010-05-13 10:42:45 -07:00
iwl-scan.c iwlwifi: push virtual interface through 2010-05-10 15:08:58 -07:00
iwl-spectrum.h iwlwifi: update copyright year to 2010 2010-01-19 16:25:15 -05:00
iwl-sta.c iwlwifi: fix and add missing sta_lock usage 2010-05-13 10:44:16 -07:00
iwl-sta.h iwlwifi: introduce iwl_sta_id_or_broadcast 2010-05-13 10:42:32 -07:00
iwl-tx.c iwlwifi: move iwl_free_tfds_in_queue to iwlagn 2010-05-13 10:43:45 -07:00
iwl3945-base.c iwlwifi: fix and add missing sta_lock usage 2010-05-13 10:44:16 -07:00