Return-path: Received: from mtiwmhc12.worldnet.att.net ([204.127.131.116]:39359 "EHLO mtiwmhc12.worldnet.att.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751735AbYJaQyu (ORCPT ); Fri, 31 Oct 2008 12:54:50 -0400 Message-ID: <490B3859.10801@lwfinger.net> (sfid-20081031_175501_924710_D2D86A71) Date: Fri, 31 Oct 2008 09:54:49 -0700 From: Larry Finger MIME-Version: 1.0 To: John Linville CC: htl10@users.sourceforge.net, Herton Ronaldo Krzesinski , Pavel Roskin , wireless Subject: [PATCH 6/6] rtl8187: Reduce channel switch delay References: <838057.50079.qm@web23102.mail.ird.yahoo.com> <49088F7D.8020102@lwfinger.net> In-Reply-To: <49088F7D.8020102@lwfinger.net> Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: The latest vendor driver (rtl8187B_linux_26.1036.0708.2008) has a 10 msec delay after the call to set a new channel, but not before. Signed-off-by: Larry Finger Tested-by: Herton Ronaldo Krzesinski Tested-by: Hin-Tak Leung --- John, This is 2.6.29 material. Larry --- Index: wireless-testing/drivers/net/wireless/rtl8187_dev.c =================================================================== --- wireless-testing.orig/drivers/net/wireless/rtl8187_dev.c +++ wireless-testing/drivers/net/wireless/rtl8187_dev.c @@ -870,7 +870,6 @@ static int rtl8187_config(struct ieee802 */ rtl818x_iowrite32(priv, &priv->map->TX_CONF, reg | RTL818X_TX_CONF_LOOPBACK_MAC); - msleep(10); priv->rf->set_chan(dev, conf); msleep(10); rtl818x_iowrite32(priv, &priv->map->TX_CONF, reg);