Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183585
b: refs/heads/master
c: dc52f0a
h: refs/heads/master
i:
  183583: 33c973b
v: v3
  • Loading branch information
Kalle Valo authored and John W. Linville committed Jan 12, 2010
1 parent 82f5d39 commit 6d61034
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e477c56e852c4c6db1f7665c642c9f45f76616a9
refs/heads/master: dc52f0a8e50303eb67ff8856cd8d1b461462ceec
3 changes: 2 additions & 1 deletion trunk/drivers/net/wireless/wl12xx/wl1251_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ int wl1251_cmd_template_set(struct wl1251 *wl, u16 cmd_id,
}

int wl1251_cmd_scan(struct wl1251 *wl, u8 *ssid, size_t ssid_len,
struct ieee80211_channel *channels[],
unsigned int n_channels, unsigned int n_probes)
{
struct wl1251_cmd_scan *cmd;
Expand Down Expand Up @@ -442,7 +443,7 @@ int wl1251_cmd_scan(struct wl1251 *wl, u8 *ssid, size_t ssid_len,
memset(&cmd->channels[i].bssid_msb, 0xff, 2);
cmd->channels[i].early_termination = 0;
cmd->channels[i].tx_power_att = 0;
cmd->channels[i].channel = i + 1;
cmd->channels[i].channel = channels[i]->hw_value;
}

cmd->params.ssid_len = ssid_len;
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1251_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include "wl1251.h"

#include <net/cfg80211.h>

struct acx_header;

int wl1251_cmd_send(struct wl1251 *wl, u16 type, void *buf, size_t buf_len);
Expand All @@ -44,6 +46,7 @@ int wl1251_cmd_read_memory(struct wl1251 *wl, u32 addr, void *answer,
int wl1251_cmd_template_set(struct wl1251 *wl, u16 cmd_id,
void *buf, size_t buf_len);
int wl1251_cmd_scan(struct wl1251 *wl, u8 *ssid, size_t ssid_len,
struct ieee80211_channel *channels[],
unsigned int n_channels, unsigned int n_probes);
int wl1251_cmd_trigger_scan_to(struct wl1251 *wl, u32 timeout);

Expand Down Expand Up @@ -169,6 +172,8 @@ struct cmd_read_write_memory {
#define WL1251_SCAN_MIN_DURATION 30000
#define WL1251_SCAN_MAX_DURATION 60000

#define WL1251_SCAN_NUM_PROBES 3

struct wl1251_scan_parameters {
u32 rx_config_options;
u32 rx_filter_options;
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/net/wireless/wl12xx/wl1251_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,8 @@ static int wl1251_op_hw_scan(struct ieee80211_hw *hw,

wl->scanning = true;

ret = wl1251_cmd_scan(wl, ssid, ssid_len, 13, 3);
ret = wl1251_cmd_scan(wl, ssid, ssid_len, req->channels,
req->n_channels, WL1251_SCAN_NUM_PROBES);
if (ret < 0) {
wl->scanning = false;
goto out_sleep;
Expand Down

0 comments on commit 6d61034

Please sign in to comment.