diff mbox

at76c50x-usb: Supply additional parameters to at76_start_monitor scan request

Message ID 1257724939.21194.926.camel@rainbow (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Jason Andryuk Nov. 9, 2009, 12:02 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x
index d9f2c52..4a3f4ff 100644
--- a/drivers/net/wireless/at76c50x-usb.c
+++ b/drivers/net/wireless/at76c50x-usb.c
@@ -1180,6 +1180,9 @@  static int at76_start_monitor(struct at76_priv *priv)
        scan.channel = priv->channel;
        scan.scan_type = SCAN_TYPE_PASSIVE;
        scan.international_scan = 0;
+       scan.min_channel_time = cpu_to_le16(priv->scan_min_time);
+       scan.max_channel_time = cpu_to_le16(priv->scan_max_time);
+       scan.probe_delay = cpu_to_le16(0);
 
        ret = at76_set_card_command(priv->udev, CMD_SCAN, &scan, sizeof(scan));
        if (ret >= 0)