From patchwork Tue Nov 23 19:21:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Kossifidis X-Patchwork-Id: 350421 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 oANJLObZ017070 for ; Tue, 23 Nov 2010 19:24:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756472Ab0KWTWz (ORCPT ); Tue, 23 Nov 2010 14:22:55 -0500 Received: from mail-ew0-f46.google.com ([209.85.215.46]:51935 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756335Ab0KWTWy (ORCPT ); Tue, 23 Nov 2010 14:22:54 -0500 Received: by ewy5 with SMTP id 5so2667633ewy.19 for ; Tue, 23 Nov 2010 11:22:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mail-followup-to:mime-version:content-type :content-disposition:user-agent; bh=Ki0ubXNALOR3T/swxcS4ERZnyQ/oNZ4BtSq4r5z6FKA=; b=QUmMSM8eCrIrgJSr2lbkyzZvrZl4M4Gbq5eguEH82IxS3SrlxNd+PHKg/3EaxIWck2 pls+0O2cQ5k+nEY6/rLDcuWnq7AXmhoSE8ktwP+At42Dktnyj8mxRiFXbrtPOll1hF+Q eD14jOns4+PKKou5sPxudvbOm2jqbD3Mk25U0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; b=uOywiBisT7nnqesaBqoFsJEc1kPnrCU17NyB+8aVkAKtKs4kc+oRmG1mNe29lgIRnR vySQ5H3LH7iM1sVXN6gO00Bvydb6jyxVgk1/GhRTgFd56yl/MPoOP1L3Ebr6LDKuouwp Xxk2kQb74M6BHTRilbvJh5PNNVVx6N7otFZnc= Received: by 10.213.28.18 with SMTP id k18mr7348509ebc.25.1290540173093; Tue, 23 Nov 2010 11:22:53 -0800 (PST) Received: from localhost ([139.91.73.37]) by mx.google.com with ESMTPS id q58sm6109874eeh.15.2010.11.23.11.22.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Nov 2010 11:22:45 -0800 (PST) Date: Tue, 23 Nov 2010 21:21:50 +0200 From: Nick Kossifidis To: ath5k-devel@venema.h4ckr.net, linux-wireless@vger.kernel.org Cc: linville@tuxdriver.com, me@bobcopeland.com, mcgrof@gmail.com, jirislaby@gmail.com, nbd@openwrt.org, br1@einfach.org Subject: [PATCH 17/30] ath5k: Use turbo flag on DCU Message-ID: <20101123192150.GQ4303@makis.mantri> Mail-Followup-To: ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org, linville@tuxdriver.com, me@bobcopeland.com, mcgrof@gmail.com, jirislaby@gmail.com, nbd@openwrt.org, br1@einfach.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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.3 (demeter1.kernel.org [140.211.167.41]); Tue, 23 Nov 2010 19:24:59 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath5k/qcu.c b/drivers/net/wireless/ath/ath5k/qcu.c index e13142a..69bff04 100644 --- a/drivers/net/wireless/ath/ath5k/qcu.c +++ b/drivers/net/wireless/ath/ath5k/qcu.c @@ -647,5 +647,10 @@ int ath5k_hw_init_queues(struct ath5k_hw *ah) * on ath5k_hw_set_ifs_intervals */ ath5k_hw_set_tx_retry_limits(ah, 0); + /* Set the turbo flag when operating on 40MHz */ + if (ah->ah_bwmode == AR5K_BWMODE_40MHZ) + AR5K_REG_ENABLE_BITS(ah, AR5K_DCU_GBL_IFS_MISC, + AR5K_DCU_GBL_IFS_MISC_TURBO_MODE); + return 0; }