]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
wlcore: check ssid length against the correct element
authorEliad Peller <eliad@wizery.com>
Tue, 3 Jul 2012 12:51:20 +0000 (15:51 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Jul 2012 16:10:15 +0000 (12:10 -0400)
commitfaae5aae2d4d7fe976d6ef62c3c209b8990124ac
tree78ab217db7c723b0917098ea0871600816aba6cb
parent0fc1d2e9fe0820cc0c3247c5766c21b8de65a886
wlcore: check ssid length against the correct element

commit 587cc28 ("wlcore: compare ssid_len before comparing
ssids") introduced a new bug - the ssid length from the
request struct was compared against the ssid length of
another request, instead the one of the cmd.

This might cause the sched scan request to fail
(with -EINVAL) in many cases.

Signed-off-by: Eliad Peller <eliad@wizery.com>
drivers/net/wireless/ti/wlcore/scan.c