diff options
author | Eyal Shapira <eyal@wizery.com> | 2011-11-08 14:54:46 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-08 21:02:45 +0100 |
commit | cc438fccd5783c9f7b4c4858358ac897dcf8a58d (patch) | |
tree | 862387fcf42ae3dd53971045e6f280529f1e7079 /drivers | |
parent | ath: Fix NULL ptr dereference in ath_reg_apply_world_flags (diff) | |
download | linux-cc438fccd5783c9f7b4c4858358ac897dcf8a58d.tar.xz linux-cc438fccd5783c9f7b4c4858358ac897dcf8a58d.zip |
wl12xx: fix wl12xx_scan_sched_scan_ssid_list() check that all given ssids are in filters
A minor fix for the check that verifies that all given SSIDs (in req) exist
in the filters (the match sets)
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Acked-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/wl12xx/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/scan.c b/drivers/net/wireless/wl12xx/scan.c index 128ccb79318c..fc29c671cf3b 100644 --- a/drivers/net/wireless/wl12xx/scan.c +++ b/drivers/net/wireless/wl12xx/scan.c @@ -559,7 +559,7 @@ wl12xx_scan_sched_scan_ssid_list(struct wl1271 *wl, break; } /* Fail if SSID isn't present in the filters */ - if (j == req->n_ssids) { + if (j == cmd->n_ssids) { ret = -EINVAL; goto out_free; } |