linux/drivers/net/wireless/iwlwifi
Johannes Berg 054ec92494 iwlagn: fix iwl_is_any_associated
The function iwl_is_any_associated() was intended
to check both contexts, but due to an oversight
it only checks the BSS context. This leads to a
problem with scanning since the passive dwell
time isn't restricted appropriately and a scan
that includes passive channels will never finish
if only the PAN context is associated since the
default dwell time of 120ms won't fit into the
normal 100 TU DTIM interval.

Fix the function by using for_each_context() and
also reorganise the other functions a bit to take
advantage of each other making the code easier to
read.

Cc: stable@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-05-10 15:54:45 -04:00
..
iwl-1000.c iwlagn: remove bytecount indirection 2011-05-06 10:46:17 -07:00
iwl-2000.c iwlagn: remove bytecount indirection 2011-05-06 10:46:17 -07:00
iwl-5000-hw.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-5000.c iwlagn: remove bytecount indirection 2011-05-06 10:46:17 -07:00
iwl-6000-hw.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-6000.c iwlagn: remove bytecount indirection 2011-05-06 10:46:17 -07:00
iwl-agn-calib.c iwlagn: clean up & autodetect statistics 2011-04-08 08:19:00 -07:00
iwl-agn-calib.h iwlagn: clean up & autodetect statistics 2011-04-08 08:19:00 -07:00
iwl-agn-eeprom.c iwlagn: semaphore and calib cleanup 2011-04-30 08:56:59 -07:00
iwl-agn-hcmd.c iwlagn: remove get_hcmd_size indirection 2011-05-06 10:45:46 -07:00
iwl-agn-hw.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-agn-ict.c iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-agn-lib.c iwlagn: mod param cleanup 2011-04-30 08:56:45 -07:00
iwl-agn-rs.c iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-agn-rs.h iwlagn: no 3945 define needed 2011-04-08 08:00:19 -07:00
iwl-agn-rxon.c iwlagn: mod param cleanup 2011-04-30 08:56:45 -07:00
iwl-agn-sta.c iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-agn-tt.c iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-agn-tt.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-agn-tx.c iwlagn: check DMA mapping errors 2011-05-06 10:46:23 -07:00
iwl-agn-ucode.c iwlwifi: support the svtool messages interactions through nl80211 test mode 2011-05-06 10:44:46 -07:00
iwl-agn.c iwlagn: remove frame pre-allocation 2011-05-06 10:45:53 -07:00
iwl-agn.h iwlagn: remove bytecount indirection 2011-05-06 10:46:17 -07:00
iwl-commands.h iwlagn: remove 5000 from rxon_assoc structure 2011-04-30 08:39:53 -07:00
iwl-core.c iwlagn: prefer BSS context 2011-04-30 08:57:32 -07:00
iwl-core.h iwlagn: remove bytecount indirection 2011-05-06 10:46:17 -07:00
iwl-csr.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-debug.h iwlagn: move IO functions out of line 2011-04-07 15:52:28 -04:00
iwl-debugfs.c iwlagn: remove un-necessary debugfs callback 2011-04-30 09:10:53 -07:00
iwl-dev.h iwlagn: fix iwl_is_any_associated 2011-05-10 15:54:45 -04:00
iwl-devtrace.c iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-devtrace.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-eeprom.c iwlagn: semaphore and calib cleanup 2011-04-30 08:56:59 -07:00
iwl-eeprom.h iwlagn: semaphore and calib cleanup 2011-04-30 08:56:59 -07:00
iwl-fh.h iwlagn: more cleanup to remove unused reference 2011-04-08 08:01:37 -07:00
iwl-hcmd.c iwlagn: remove most BUG_ON instances 2011-04-18 09:14:30 -07:00
iwl-helpers.h iwlagn: combine firmware code/data 2011-04-22 10:21:18 -07:00
iwl-io.c iwlagn: introduce silent grabbing of NIC access 2011-04-30 08:39:22 -07:00
iwl-io.h iwlagn: introduce silent grabbing of NIC access 2011-04-30 08:39:22 -07:00
iwl-led.c iwlagn: led stay solid on when no traffic 2011-05-10 15:54:43 -04:00
iwl-led.h iwlagn: use direct call for led functions 2011-04-18 08:47:43 -07:00
iwl-power.c iwlagn: temperature should be measure for all _agn devices 2011-04-18 09:30:09 -07:00
iwl-power.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-prph.h iwlagn: more cleanup to remove unused reference 2011-04-08 08:01:37 -07:00
iwl-rx.c iwlagn: mod param cleanup 2011-04-30 08:56:45 -07:00
iwl-scan.c iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-sta.c iwlagn: remove most BUG_ON instances 2011-04-18 09:14:30 -07:00
iwl-sta.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-sv-open.c iwlwifi: support the svtool messages interactions through nl80211 test mode 2011-05-06 10:44:46 -07:00
iwl-testmode.h iwlwifi: support the svtool messages interactions through nl80211 test mode 2011-05-06 10:44:46 -07:00
iwl-tx.c iwlagn: check DMA mapping errors 2011-05-06 10:46:23 -07:00
Kconfig iwlwifi: support the svtool messages interactions through nl80211 test mode 2011-05-06 10:44:46 -07:00
Makefile iwlwifi: support the svtool messages interactions through nl80211 test mode 2011-05-06 10:44:46 -07:00