From: Eyal Shapira Date: Tue, 8 Nov 2011 13:54:46 +0000 (+0200) Subject: wl12xx: fix wl12xx_scan_sched_scan_ssid_list() check that all given ssids are in... X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=cc438fccd5783c9f7b4c4858358ac897dcf8a58d;p=~shefty%2Frdma-dev.git 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 Acked-by: Luciano Coelho Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/wl12xx/scan.c b/drivers/net/wireless/wl12xx/scan.c index 128ccb79318..fc29c671cf3 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; }