linux/drivers/net/wireless/wl12xx
Luciano Coelho 66870b1ccd wl12xx: fix oops in sched_scan when forcing a passive scan
Fix kernel oops when trying to use passive scheduled scans.  The
reason was that in passive scans there are no SSIDs, so there was a
NULL pointer dereference.

To solve the problem, we now check the number of SSIDs provided in the
sched_scan request and only access the list if there's one or more
(ie. passive scan is not forced).  We also force all the channels to
be passive by adding the IEEE80211_CHAN_PASSIVE_SCAN flag locally
before the checks in the wl1271_scan_get_sched_scan_channels()
function.

Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-05-31 14:47:26 -04:00
..
acx.c Revert "wl12xx: support FW TX inactivity triggers" 2011-05-02 12:46:40 +03:00
acx.h Revert "wl12xx: support FW TX inactivity triggers" 2011-05-02 12:46:40 +03:00
boot.c wl12xx: listen to scheduled scan events 2011-05-13 00:06:32 +03:00
boot.h wl12xx: move hardcoded hci_io_ds value into the conf struct 2011-04-19 16:49:22 +03:00
cmd.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-05-16 19:32:19 -04:00
cmd.h wl12xx: 1281/1283 support - New radio structs and functions 2011-04-19 16:19:48 +03:00
conf.h wl12xx: add separate config value for DFS dwell time on sched scan 2011-05-31 14:47:25 -04:00
debugfs.c wl12xx: export scheduled scan state in debugfs 2011-05-13 00:06:33 +03:00
debugfs.h
event.c wl12xx: enter/exit psm on wowlan suspend/resume 2011-05-13 14:55:49 +03:00
event.h Revert "wl12xx: support FW TX inactivity triggers" 2011-05-02 12:46:40 +03:00
ini.h wl12xx: 1281/1283 support - Loading FW & NVS 2011-04-19 16:48:10 +03:00
init.c Revert "wl12xx: support FW TX inactivity triggers" 2011-05-02 12:46:40 +03:00
init.h wl12xx: AP-mode - reconfigure templates after basic rates change 2011-05-02 10:31:18 +03:00
io.c wl12xx: Clean up the block size alignment code 2011-04-19 16:49:18 +03:00
io.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-05-05 13:32:35 -04:00
Kconfig wl12xx: 1281/1283 support - enable chip support 2011-04-19 16:49:03 +03:00
main.c wl12xx: add separate config value for DFS dwell time on sched scan 2011-05-31 14:47:25 -04:00
Makefile
ps.c wl12xx: avoid premature elp entrance 2011-05-02 10:25:27 +03:00
ps.h wl12xx: enter/exit psm on wowlan suspend/resume 2011-05-13 14:55:49 +03:00
reg.h wl12xx: 1281/1283 support - Add Definitions 2011-04-19 16:19:46 +03:00
rx.c wl12xx: discard corrupted packets in RX 2011-05-02 10:27:25 +03:00
rx.h
scan.c wl12xx: fix oops in sched_scan when forcing a passive scan 2011-05-31 14:47:26 -04:00
scan.h wl12xx: fix DFS channels handling in scheduled scan 2011-05-31 14:47:25 -04:00
sdio.c wl12xx: fix compilation error when CONFIG_PM is not set 2011-05-18 16:51:26 -04:00
sdio_test.c wl12xx: Clamp byte mode transfers for 128x chips 2011-04-19 16:49:07 +03:00
spi.c wl12xx: Handle platforms without level trigger interrupts 2011-04-19 16:49:20 +03:00
testmode.c wl12xx: 1281/1283 support - Loading FW & NVS 2011-04-19 16:48:10 +03:00
testmode.h
tx.c wl12xx: fix race condition during recovery in AP mode 2011-05-02 10:31:28 +03:00
tx.h wl12xx: fix race condition during recovery in AP mode 2011-05-02 10:31:28 +03:00
wl12xx.h wl12xx: enter/exit psm on wowlan suspend/resume 2011-05-13 14:55:49 +03:00
wl12xx_80211.h
wl12xx_platform_data.c