66870b1ccd
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
acx.c | ||
acx.h | ||
boot.c | ||
boot.h | ||
cmd.c | ||
cmd.h | ||
conf.h | ||
debugfs.c | ||
debugfs.h | ||
event.c | ||
event.h | ||
ini.h | ||
init.c | ||
init.h | ||
io.c | ||
io.h | ||
main.c | ||
ps.c | ||
ps.h | ||
reg.h | ||
rx.c | ||
rx.h | ||
scan.c | ||
scan.h | ||
sdio.c | ||
sdio_test.c | ||
spi.c | ||
testmode.c | ||
testmode.h | ||
tx.c | ||
tx.h | ||
wl12xx.h | ||
wl12xx_80211.h | ||
wl12xx_platform_data.c |