From patchwork Sun Nov 27 19:37:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9448885 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5730260235 for ; Sun, 27 Nov 2016 19:38:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D23526242 for ; Sun, 27 Nov 2016 19:38:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31EA226598; Sun, 27 Nov 2016 19:38:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C36EC26242 for ; Sun, 27 Nov 2016 19:38:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cB5HL-0001ap-3l; Sun, 27 Nov 2016 19:38:23 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cB5HJ-0001M3-2M for ath10k@lists.infradead.org; Sun, 27 Nov 2016 19:38:22 +0000 Received: by mail-lf0-x243.google.com with SMTP id 98so7502290lfs.0 for ; Sun, 27 Nov 2016 11:37:59 -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; bh=1vG3Qt5waYLZGfqo8sfzsC+W4MQd5rLstNtjqOtr1Bs=; b=KihPYgjCHQXLL40/3mcPFIxs1Ge9FXb4DZF2hyA0pl1YZCYU0W9WzT6dmkl3boHJ6O 3xljrqTjvNNHweZlWR80RRT4aC0Wq3Ekn+bcpUg46BviZ6afM/o+2jSuS8xGN3aknWx5 muj8HAIQ7x6ZzvxPaOSvAAfeXJLr4V6UQlu0GEEyuqoNDBz4sziwdMqavVQRviU+B/z5 sl6rZcg55yeHjHPtsjLmhe+l5Qc5prR3/gtL7ccXF48KptGWSIcA4QHtDJ5Ag1elf/ya +SWawGYNgfZ9qEiUR+a4xbViNm+S5lIEETopdD/2s1xJ4Pj002vhM07zc6xLVMe1IGtr aSZQ== 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=1vG3Qt5waYLZGfqo8sfzsC+W4MQd5rLstNtjqOtr1Bs=; b=FIJ91K1O47fJ41JQXn6OopOpho+Jxyg9O/U0e9riwcjVrW2aib88quAcJVCPmg6D2i rJCNUW91/GLe+wcucFFF/m2AgySuvraqyfhE90zvKwwZOW3C7DiGNjwmnUgcSBIlNQiy B9NR1wcKj6od4FRppUrWN5Qt8Lu/X3UFwlYJhqzgflPBj7p3VcA+lrqFEiY7abvEvxuP +ol2M2fJng2nYy1LFIgb2TxCeKVlH88UziNY42JavAN5hR6O+EvcXI1oE1vfuKumeHpR HZxvxq1uTC+Z1yUxjhQz+KNea6185UsDrcxVACLNsM13UyGbUCqKv194omWgja5AXR4/ hRLQ== X-Gm-Message-State: AKaTC03ozuGXw4Hpar7DThET3dlcnPXZrmIlzY5DD0ai3a+qgEYTlxUE8iEKrwlEWNqC2g== X-Received: by 10.46.33.75 with SMTP id h72mr8016480ljh.27.1480275477631; Sun, 27 Nov 2016 11:37:57 -0800 (PST) Received: from erik-desktop.lan (81-233-218-8-no25.tbcn.telia.com. [81.233.218.8]) by smtp.gmail.com with ESMTPSA id d135sm11764421lfg.12.2016.11.27.11.37.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Nov 2016 11:37:56 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [PATCH] ath10k: fix TLV set regdomain command Date: Sun, 27 Nov 2016 20:37:20 +0100 Message-Id: <1480275440-9919-1-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161127_113821_403986_D202169A X-CRM114-Status: UNSURE ( 9.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Erik Stromdahl MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP There is a typo bug in the current implementation of ath10k_wmi_tlv_op_gen_pdev_set_rd. The conformance test limits are not set up properly. The two arguments ctl2g and ctl5g were not used at all. Instead, the regdomain arguments rd2g and rd5g were used for the ctl settings as well. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index 97b536e..f304f66 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -1313,8 +1313,8 @@ static int ath10k_wmi_tlv_op_pull_echo_ev(struct ath10k *ar, cmd->regd = __cpu_to_le32(rd); cmd->regd_2ghz = __cpu_to_le32(rd2g); cmd->regd_5ghz = __cpu_to_le32(rd5g); - cmd->conform_limit_2ghz = __cpu_to_le32(rd2g); - cmd->conform_limit_5ghz = __cpu_to_le32(rd5g); + cmd->conform_limit_2ghz = __cpu_to_le32(ctl2g); + cmd->conform_limit_5ghz = __cpu_to_le32(ctl5g); ath10k_dbg(ar, ATH10K_DBG_WMI, "wmi tlv pdev set rd\n"); return skb;