summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/zd1211rw/zd_usb.c
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-05-27 15:34:48 +0300
committerJohn W. Linville <linville@tuxdriver.com>2011-05-31 14:47:26 -0400
commit66870b1ccd5c1460e437c18b0026e2dcaab1ece9 (patch)
tree0067c12e2014b4e4aa58ca6204236618515b3d79 /drivers/net/wireless/zd1211rw/zd_usb.c
parent50a66d7f04adbfab9db55144c58dc693358cb635 (diff)
downloadblackbird-op-linux-66870b1ccd5c1460e437c18b0026e2dcaab1ece9.tar.gz
blackbird-op-linux-66870b1ccd5c1460e437c18b0026e2dcaab1ece9.zip
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>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_usb.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud