From patchwork Mon Nov 9 00:02:19 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Andryuk X-Patchwork-Id: 58637 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA902Na3032755 for ; Mon, 9 Nov 2009 00:02:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751688AbZKIACQ (ORCPT ); Sun, 8 Nov 2009 19:02:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751690AbZKIACQ (ORCPT ); Sun, 8 Nov 2009 19:02:16 -0500 Received: from mail-yw0-f202.google.com ([209.85.211.202]:47004 "EHLO mail-yw0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751651AbZKIACQ (ORCPT ); Sun, 8 Nov 2009 19:02:16 -0500 Received: by ywh40 with SMTP id 40so2173952ywh.33 for ; Sun, 08 Nov 2009 16:02:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=SE0c0PQgsLQC/cB4D82kvp8Pqr+WwcMm1D4c0bb7zOk=; b=Jv/J3eMVnrvx6RqTxG4WpSNlNi08Hq3uA7NV7FizZGCuIfeasNRAwpTpc9F64NS3bq fwlJ3ZXVUNAtUXrIVhUEqLYCcwDUxsu12++xFs6LbLiVNYoJWOJahNXRwulxWy87ms39 3BOtIANRnuryjoqRicpu/8w9qsQgzrtUn1YWQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=uhKOLP+9yv9ApdRFpf8IMHaT/QhCN+QW7lMFqyDPXc4fOrmNTGyTapJdBUDNDMtLZ6 NXvpFB8hDjfRkGpAoM+C8Kxmn4Ytgfa607L6WSnIolbGdWSMthWhLQ5wSXvvAU6tBZT4 Dd8DYCNk0kykVyr8GVpNrH7Xl81N5vK6GPPmY= Received: by 10.150.239.15 with SMTP id m15mr11905558ybh.336.1257724941606; Sun, 08 Nov 2009 16:02:21 -0800 (PST) Received: from ?192.168.2.99? (c-69-140-176-102.hsd1.md.comcast.net [69.140.176.102]) by mx.google.com with ESMTPS id 6sm847003ywc.54.2009.11.08.16.02.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 08 Nov 2009 16:02:20 -0800 (PST) Subject: [PATCH] at76c50x-usb: Supply additional parameters to at76_start_monitor scan request From: Jason Andryuk To: "linux-wireless@vger.kernel.org" Cc: Kalle Valo Date: Sun, 08 Nov 2009 19:02:19 -0500 Message-ID: <1257724939.21194.926.camel@rainbow> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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)