aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJason Andryuk <jandryuk@gmail.com>2009-11-08 19:02:19 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-11 17:09:17 -0500
commit13b409cc8c1614090f256729ee0038438a6946f7 (patch)
tree87826ef0b1d316c723a3e955a8ac03aa9eee9323 /drivers
parenta6ef92ad3588d4e011295bf724f88e7d5b8c0e1b (diff)
at76c50x-usb: Supply additional parameters to at76_start_monitor scan request
For my Linksys WUSB11 at76c503-i3861 device, scanning fails without probe_delay, min_channel_time, and max_channel_time specified for the scan request. These values were found by checking scan requests from the at76_usb driver. Signed-off-by: Jason Andryuk <jandryuk@gmail.com> Acked-by: Kalle Valo <kalle.valo@iki.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/at76c50x-usb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index be2e5962319b..2517364d3ebe 100644
--- a/drivers/net/wireless/at76c50x-usb.c
+++ b/drivers/net/wireless/at76c50x-usb.c
@@ -1188,6 +1188,9 @@ static int at76_start_monitor(struct at76_priv *priv)
1188 scan.channel = priv->channel; 1188 scan.channel = priv->channel;
1189 scan.scan_type = SCAN_TYPE_PASSIVE; 1189 scan.scan_type = SCAN_TYPE_PASSIVE;
1190 scan.international_scan = 0; 1190 scan.international_scan = 0;
1191 scan.min_channel_time = cpu_to_le16(priv->scan_min_time);
1192 scan.max_channel_time = cpu_to_le16(priv->scan_max_time);
1193 scan.probe_delay = cpu_to_le16(0);
1191 1194
1192 ret = at76_set_card_command(priv->udev, CMD_SCAN, &scan, sizeof(scan)); 1195 ret = at76_set_card_command(priv->udev, CMD_SCAN, &scan, sizeof(scan));
1193 if (ret >= 0) 1196 if (ret >= 0)