From patchwork Thu Aug 27 07:38:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jussi Kivilinna X-Patchwork-Id: 44211 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 n7R7cxT3018156 for ; Thu, 27 Aug 2009 07:38:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751509AbZH0Hiy (ORCPT ); Thu, 27 Aug 2009 03:38:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751507AbZH0Hiy (ORCPT ); Thu, 27 Aug 2009 03:38:54 -0400 Received: from sypressi.dnainternet.net ([83.102.40.135]:33317 "EHLO sypressi.dnainternet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751488AbZH0Hiy (ORCPT ); Thu, 27 Aug 2009 03:38:54 -0400 Received: from localhost (localhost [127.0.0.1]) by sypressi.dnainternet.net (Postfix) with ESMTP id B50BBCA097; Thu, 27 Aug 2009 10:34:45 +0300 (EEST) X-Virus-Scanned: DNA Postiturva at dnainternet.net X-Spam-Flag: NO X-Spam-Score: -0.618 X-Spam-Level: X-Spam-Status: No, score=-0.618 tagged_above=-9999 required=6 tests=[AWL=-0.618] Received: from sypressi.dnainternet.net ([83.102.40.135]) by localhost (sypressi.dnainternet.net [127.0.0.1]) (amavisd-new, port 10041) with ESMTP id WoMIWjNY-osA; Thu, 27 Aug 2009 10:34:45 +0300 (EEST) Received: from kirsikkapuu.dnainternet.net (kirsikkapuu.dnainternet.net [83.102.40.214]) by sypressi.dnainternet.net (Postfix) with ESMTP id 912A1CA099; Thu, 27 Aug 2009 10:34:45 +0300 (EEST) Received: from fate.lan (dyn2-85-23-163-149.psoas.suomi.net [85.23.163.149]) by kirsikkapuu.dnainternet.net (Postfix) with ESMTP id E44D62BAF0; Thu, 27 Aug 2009 10:38:54 +0300 (EEST) From: Jussi Kivilinna Subject: [PATCH] rndis_wlan: increase scan timer delay To: linux-wireless@vger.kernel.org Cc: "John W. Linville" Date: Thu, 27 Aug 2009 10:38:54 +0300 Message-ID: <20090827073854.27662.68095.stgit@fate.lan> User-Agent: StGIT/0.14.2 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Increase scan delay from 1 sec to 6 sec. Spec says that scan by OID_802_11_BSSID_LIST_SCAN completes in 6 seconds. Before rfkill patch too short delay was not problem as device was always active (radio on) and performing background scanning. Signed-off-by: Jussi Kivilinna --- drivers/net/wireless/rndis_wlan.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index f181b00..6d49e80 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c @@ -1599,7 +1599,7 @@ static int rndis_get_tx_power(struct wiphy *wiphy, int *dbm) } -#define SCAN_DELAY_JIFFIES (HZ) +#define SCAN_DELAY_JIFFIES (HZ * 6) static int rndis_scan(struct wiphy *wiphy, struct net_device *dev, struct cfg80211_scan_request *request) {