From patchwork Thu Mar 3 18:46:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivo van Doorn X-Patchwork-Id: 607051 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p23InMcX021564 for ; Thu, 3 Mar 2011 18:49:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932278Ab1CCStU (ORCPT ); Thu, 3 Mar 2011 13:49:20 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:45862 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932266Ab1CCStS (ORCPT ); Thu, 3 Mar 2011 13:49:18 -0500 Received: by mail-ww0-f44.google.com with SMTP id 22so1738699wwb.1 for ; Thu, 03 Mar 2011 10:49:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=Y1Jh3thTEgHjWh63c8G1o2XMNX8p4UyVIC9wo7s3jaI=; b=iisVaRzEigASpCTGIhUBqs3ul13yxRgKN3zCiMabLDM0ks5htKfI/sAIaFECjUfLC4 8YL2BVOeF1UJhqUX0MFJ9mkUFdz+1IQadBW6WEuU8JT6KluljaJ6wslnU8MZUK0p3pxw F13qtzEV62JAuOV/I2C47QKu4AQKkV0nkv82M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=uaEGoAJ9QSuZKvyHYcgt9cHksIE3VHfK3QCWYcBx1kLGrrHpX50bBbFJFOua1PxcNp OavouJZYPmuEyw6XZKhS1rqTWtCBWeg+nO1w1GBUlu0+L6jqfnlOXcDErHpJLED4PnQN Hr4X+jR1zd8jdtJ4uyyaZYLma0wjLVCpE15ZE= Received: by 10.216.51.135 with SMTP id b7mr954004wec.29.1299178158157; Thu, 03 Mar 2011 10:49:18 -0800 (PST) Received: from localhost.localdomain (g121037.upc-g.chello.nl [80.57.121.37]) by mx.google.com with ESMTPS id j49sm738659wer.14.2011.03.03.10.49.15 (version=SSLv3 cipher=OTHER); Thu, 03 Mar 2011 10:49:16 -0800 (PST) From: Ivo van Doorn To: "John W. Linville" Subject: [PATCH 18/19] rt2x00: Optimize getting the beacon queue structure. Date: Thu, 3 Mar 2011 19:46:55 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.x86_64; KDE/4.4.5; x86_64; ; ) Cc: linux-wireless@vger.kernel.org, users@rt2x00.serialmonkey.com References: <201103031938.56423.IvDoorn@gmail.com> <201103031946.09972.IvDoorn@gmail.com> <201103031946.30487.IvDoorn@gmail.com> In-Reply-To: <201103031946.30487.IvDoorn@gmail.com> MIME-Version: 1.0 Message-Id: <201103031946.56905.IvDoorn@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 03 Mar 2011 18:49:23 +0000 (UTC) diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index 5cd6575..5827787 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c @@ -293,7 +293,7 @@ static void rt2500pci_config_intf(struct rt2x00_dev *rt2x00dev, struct rt2x00intf_conf *conf, const unsigned int flags) { - struct data_queue *queue = rt2x00queue_get_queue(rt2x00dev, QID_BEACON); + struct data_queue *queue = rt2x00dev->bcn; unsigned int bcn_preload; u32 reg; diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index 7f58767..e7210a2 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c @@ -191,7 +191,7 @@ int rt2x00mac_add_interface(struct ieee80211_hw *hw, { struct rt2x00_dev *rt2x00dev = hw->priv; struct rt2x00_intf *intf = vif_to_intf(vif); - struct data_queue *queue = rt2x00queue_get_queue(rt2x00dev, QID_BEACON); + struct data_queue *queue = rt2x00dev->bcn; struct queue_entry *entry = NULL; unsigned int i;