Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932260AbVKBDs1 (ORCPT ); Tue, 1 Nov 2005 22:48:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751474AbVKBDs1 (ORCPT ); Tue, 1 Nov 2005 22:48:27 -0500 Received: from mail.clemson.edu ([130.127.28.87]:16801 "EHLO CLEMSON.EDU") by vger.kernel.org with ESMTP id S1750953AbVKBDs0 (ORCPT ); Tue, 1 Nov 2005 22:48:26 -0500 Date: Tue, 1 Nov 2005 22:47:57 -0500 From: Bill Moss Message-Id: <200511020347.jA23lvi9028538@localhost.localdomain> To: linville@tuxdriver.com, netdev@vger.kernel.org Subject: [PATCH 2.6.13] airo.c: remove delay in airo_get_scan Cc: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1086 Lines: 21 Remove 3 second delay in airo_get_scan. Testing shows this delay is unnecessary. Users of NetworkManager find this delay make NetworkManager slow to connect. --- a/drivers/net/wireless/airo.c 2005-11-01 21:21:04.000000000 -0500 +++ b/drivers/net/wireless/airo.c 2005-11-01 21:22:41.000000000 -0500 @@ -6918,7 +6918,7 @@ /* When we are associated again, the scan has surely finished. * Just in case, let's make sure enough time has elapsed since * we started the scan. - Javier */ - if(ai->scan_timestamp && time_before(jiffies,ai->scan_timestamp+3*HZ)) { + if(ai->scan_timestamp && time_before(jiffies,ai->scan_timestamp)) { /* Important note : we don't want to block the caller * until results are ready for various reasons. * First, managing wait queues is complex and racy Signed-off-by: Bill Moss - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/