From patchwork Tue Mar 4 11:58:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 3761511 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 808EDBF13A for ; Tue, 4 Mar 2014 11:59:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 954BB20158 for ; Tue, 4 Mar 2014 11:59:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1BEE520411 for ; Tue, 4 Mar 2014 11:59:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757183AbaCDL6z (ORCPT ); Tue, 4 Mar 2014 06:58:55 -0500 Received: from mail-ea0-f181.google.com ([209.85.215.181]:50230 "EHLO mail-ea0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757156AbaCDL6y (ORCPT ); Tue, 4 Mar 2014 06:58:54 -0500 Received: by mail-ea0-f181.google.com with SMTP id k10so304702eaj.12 for ; Tue, 04 Mar 2014 03:58:52 -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=I66nxRfKKwc97hXpAU3MsELc1pl1KZvSYZVQv7mI8Vk=; b=mI9POetXTQ1Jzxa5Cy5k2NMv5nhWu+HttwZ0rXPaNVitXQeuLUXFT5uQ2iS0whT/Uk MwzKZvTJA/WPL7pa9iRmS3Us8gmktUEXICPvvcJxrM2CbX5P+yhXBVVT7/AMT/EnrBMz 2h+oNMkNHD62NgXoRH9D2a0DOFzMtnbNaQjD8= 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=I66nxRfKKwc97hXpAU3MsELc1pl1KZvSYZVQv7mI8Vk=; b=PyxqCt3Vhw7gEiI5p04MTRPTXD4P+YOLnXdpcXzcmSMB7uXwkfEq8gO+QkNi8zn0N4 GZJ/gUZu7it8lf9bQFimMfRMwE7xLV6Y/P4nQzOBtEBdGg8bj60Vo0T+S7Tx85MqpczV dDY8I01FKlW3oguEQxWjxHWkLVAb1ln59Svm5r/2NOfnfP9/nxl/UgulXv3EWTRCtXh5 J4ruQlG4nf0Vw8IeGf9Kd9EV7PutbPI95AsNy2IpQkSRCQoziIkwjV78MO3gNG/O7YC1 DM95sX658PZbvNsvjMwMneLi3e7MELBlA835yaF6ewXYyeil+AvREoQOu7gHTqWRhbL1 03ww== X-Gm-Message-State: ALoCoQlwXhEaZe42fwYXzj5KXbpCl6LQMqARnEsqYUR2EsRNXgNf4ihmZTiJO2PqEaewi5jv9DfGYlJAEA2HHIhUN0UFORbi/HKvw1I5JOLoS+SYmnz/GPk= X-Received: by 10.14.109.201 with SMTP id s49mr17490275eeg.88.1393934332782; Tue, 04 Mar 2014 03:58:52 -0800 (PST) Received: from uw000975.eu.tieto.com. ([91.198.246.10]) by mx.google.com with ESMTPSA id j42sm62644786eep.21.2014.03.04.03.58.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Mar 2014 03:58:52 -0800 (PST) From: Bartosz Markowski To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Marek Puzyniak , Bartosz Markowski Subject: [PATCH] ath10k: do not overwrite max_antenna_gain Date: Tue, 4 Mar 2014 12:58:31 +0100 Message-Id: <1393934311-26154-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 there's an old bug where we overwrite the antenna_gain with zero value. This patch removes the excessive assignment of max_antenna_gain, which should be provided by regulatory domain settings. 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;