From patchwork Thu Dec 18 23:18:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 5516451 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AD4159F443 for ; Thu, 18 Dec 2014 23:18:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ECB4C20108 for ; Thu, 18 Dec 2014 23:18:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C55C200DB for ; Thu, 18 Dec 2014 23:18:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751793AbaLRXSU (ORCPT ); Thu, 18 Dec 2014 18:18:20 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:58264 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618AbaLRXSS (ORCPT ); Thu, 18 Dec 2014 18:18:18 -0500 Received: by mail-wi0-f171.google.com with SMTP id bs8so227264wib.10 for ; Thu, 18 Dec 2014 15:18:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tg3nEvbaGYP6UdBLA4sxnOg+nhD6Ti/hJ7zG/TUMO8w=; b=mNsx0MePZgtxCXhXxglAxsvojzYeoBoqoJJHKb+J4Ousm5CM+Hser5fY1fBAsN7Vep h7zgayQkmls9eeFBLHrdKaOicp6xvutMNGfekipUqhILIbOZLgCJc2OY1YB1AfXgtlOc oefcP5nZn+hFsAdDlnehdcG1mK0hr4byzM5/7LJ6ecZtbhD09UebuIg9HyZBvva75yMJ zxNIm3Ipb8djoq/h2Qbl5kWfQzl8UEMD2h6Vtk3DFRLoxHobalcsYyIG/Yy8EMh46QsE xtC6BQXdPV+hNg5Izu5qW4KKojiOa3zXpzycJLb2mWZUNtnzk930uNKelS5R0WVWvZvQ vk+A== X-Received: by 10.180.24.167 with SMTP id v7mr310933wif.5.1418944696705; Thu, 18 Dec 2014 15:18:16 -0800 (PST) Received: from kxps.lan (ppp-225-38.30-151.libero.it. [151.30.38.225]) by mx.google.com with ESMTPSA id mu5sm271566wic.18.2014.12.18.15.18.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Dec 2014 15:18:16 -0800 (PST) From: Lorenzo Bianconi To: linux-wireless@vger.kernel.org Cc: nbd@openwrt.org, thomas@net.t-labs.tu-berlin.de Subject: [PATCH 1/3] ath9k: enable TPC by default Date: Fri, 19 Dec 2014 00:18:12 +0100 Message-Id: <1418944694-10614-2-git-send-email-lorenzo.bianconi83@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1418944694-10614-1-git-send-email-lorenzo.bianconi83@gmail.com> References: <1418944694-10614-1-git-send-email-lorenzo.bianconi83@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enable hw TPC by default on AR9003 based chips Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/ath/ath9k/hw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 6d4b273..258c4d2 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -422,6 +422,9 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah) ah->power_mode = ATH9K_PM_UNDEFINED; ah->htc_reset_init = true; + /* ar9002 does not support TPC for the moment */ + ah->tpc_enabled = !!AR_SREV_9300_20_OR_LATER(ah); + ah->ani_function = ATH9K_ANI_ALL; if (!AR_SREV_9300_20_OR_LATER(ah)) ah->ani_function &= ~ATH9K_ANI_MRC_CCK;