Skip to content

Commit

Permalink
wl12xx: fix wl12xx_scan_sched_scan_ssid_list() check that all given s…
Browse files Browse the repository at this point in the history
…sids 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>
  • Loading branch information
Eyal Shapira authored and John W. Linville committed Nov 8, 2011
1 parent a59be08 commit cc438fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/wl12xx/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cc438fc

Please sign in to comment.