Skip to content

Commit

Permalink
wlcore: set 5Ghz probe-req template for DFS in sched-scan
Browse files Browse the repository at this point in the history
Even passive scans on DFS channels require us to send probe requests, so
configure the probe-req in this case.

We forgot to fix sched-scan in our previous patch.

Reported-by: Ido Reis <idor@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
  • Loading branch information
ariknem committed Oct 23, 2012
1 parent 87e73a7 commit 478a943
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drivers/net/wireless/ti/wlcore/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,18 @@ int wl1271_scan_sched_scan_config(struct wl1271 *wl,
wl1271_error("5GHz PROBE request template failed");
goto out;
}
} else if (cmd->dfs) { /* only DFS channels in 5Ghz */
u8 band = IEEE80211_BAND_5GHZ;
ret = wl12xx_cmd_build_probe_req(wl, wlvif,
cmd->role_id, band,
NULL, 0, /* no SSID */
req->ie,
req->ie_len,
false);
if (ret < 0) {
wl1271_error("5GHz PROBE request template failed");
goto out;
}
}

wl1271_dump(DEBUG_SCAN, "SCAN: ", cmd, sizeof(*cmd));
Expand Down

0 comments on commit 478a943

Please sign in to comment.