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: 9448883 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 8153E60235 for ; Sun, 27 Nov 2016 19:38:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67465204BA for ; Sun, 27 Nov 2016 19:38:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BC8E212DA; Sun, 27 Nov 2016 19:38:02 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B5B8204BA for ; Sun, 27 Nov 2016 19:38:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753514AbcK0TiB (ORCPT ); Sun, 27 Nov 2016 14:38:01 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36816 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752431AbcK0Th7 (ORCPT ); Sun, 27 Nov 2016 14:37:59 -0500 Received: by mail-lf0-f68.google.com with SMTP id o20so7524650lfg.3 for ; Sun, 27 Nov 2016 11:37:58 -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=RhUQiIxBz6KuqXf3RwCpVqYy2PB5Q0gBHi2ZUgABhbBRuStcQXrtg/yIworWBRZqO0 xCxvJeWzr+e3MOTaHuzXmpsPr5gBKCkGAucqS7mmPp925Dm7hWAn5U+thK2wZsr+tKuf QJJf6Rms8pVA2dqq98vML76Nu7BpBKpU1yPI1F4Tx69c9TIE8KDEE7Ob7RVET/yxDsyj pFRlnWCNffVW3XKxNGmmlhlfREneyuakhhzHw0vSjVz4F49vPx0HLTP8W0gFOlI3pDp1 vicJQQKYq8YydcBtKa2auXUktz3afly0exSxATP/JOlx6PAA+RJxNcCH4uYFAFFMQL3/ 8SCw== X-Gm-Message-State: AKaTC01oM5pBexdiEifjMa41v6QoPELTLLncJ8gWh40HpIF6AjhcyNvRxXkhHaLgg3foWg== 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 Cc: Erik Stromdahl 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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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;