From patchwork Wed Mar 5 12:10:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 3774111 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 D6C619F370 for ; Wed, 5 Mar 2014 12:11:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 01FFF20221 for ; Wed, 5 Mar 2014 12:11:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2DC842021F for ; Wed, 5 Mar 2014 12:11:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756743AbaCEMLW (ORCPT ); Wed, 5 Mar 2014 07:11:22 -0500 Received: from mail-ea0-f175.google.com ([209.85.215.175]:43828 "EHLO mail-ea0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755539AbaCEMLV (ORCPT ); Wed, 5 Mar 2014 07:11:21 -0500 Received: by mail-ea0-f175.google.com with SMTP id d10so972580eaj.20 for ; Wed, 05 Mar 2014 04:11:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=8WG9VuI+UDIsA1bTLkMZGHsp0xdNugRJM/a2egZUiGE=; b=VhrTGdrRRYB1RRZZKp4B98rKHjYEYLzO6DglY4X2DXjeCIJxrSpwpxsRsANtXlqUuc COSHbjz6K3bn5dH3koIVT8GLrfkk1b/p9ajd+9bzA15SPSy6k97ohINC81D+ji8A7HLa yGlFf49iYT5Y326xTAcvW8DSYbHnD5pZRJvYk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8WG9VuI+UDIsA1bTLkMZGHsp0xdNugRJM/a2egZUiGE=; b=GEJ/clXDBYz1BiGvTaUZU93ZsXHQIeq8q3pvxGAuzR3eDbbvTY9OjHR0Qv80Z5gCeQ npHdjudwx3vyLEDobUCoVGea0O0miOdV/cnpDilB0XS1XA0hGREUBjuITqYFQjHiiD+X G0BTWcXF0EERUSyMTvFSp8XExP1vMgAw0OR5WiBarBKhBMsaDm/HBfmT+fQWPeJSOSBI IIKwKrh7Ss1WEoIIH1L9VsWik+qoNVxhI4IFYTPLasc/gHYq01lC1+nu8epVas/c/ynQ fj6slEPHeDZRZyYRYHOAxRJ6srRZF7Rwoq+zEnWzkPwmz8ajqsJaX/JzhozYOgnmfxQf Dsug== X-Gm-Message-State: ALoCoQkBkQMpqWLUw2hJpGh9A0ndwfWusl4mbY3069bvAPNXXsq4KlnsHG/ZArZM0PmwsulpGvM/dC9xOGkO1kCbfGxaM+AgOTON4syY5Satgme90YvzVNo= X-Received: by 10.14.176.195 with SMTP id b43mr2219625eem.99.1394021480080; Wed, 05 Mar 2014 04:11:20 -0800 (PST) Received: from uw000975.eu.tieto.com. ([91.198.246.10]) by mx.google.com with ESMTPSA id 46sm8232548ees.4.2014.03.05.04.11.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Mar 2014 04:11:19 -0800 (PST) From: Bartosz Markowski To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Marek Puzyniak , Bartosz Markowski Subject: [PATCH v2] ath10k: do not overwrite max_antenna_gain Date: Wed, 5 Mar 2014 13:10:33 +0100 Message-Id: <1394021433-19376-1-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 1.7.10 X-DomainID: tieto.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_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 From: Marek Puzyniak Seems like we have an old bug, where we incidently overwrites the max_antenna_gain we pass to firmware, with zero value. End of all we are artifically reducing the output power. This patch removes the excessive assignment on max_antenna_gain, which is being provided by regulatory domain, and consequently improves the tx power. Signed-off-by: Marek Puzyniak Signed-off-by: Bartosz Markowski --- drivers/net/wireless/ath/ath10k/wmi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 478e7f6..cb1f7b5 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -3393,7 +3393,6 @@ int ath10k_wmi_scan_chan_list(struct ath10k *ar, ci->max_power = ch->max_power; ci->reg_power = ch->max_reg_power; ci->antenna_max = ch->max_antenna_gain; - ci->antenna_max = 0; /* mode & flags share storage */ ci->mode = ch->mode;