From patchwork Mon Sep 23 19:49:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tom Psyborg X-Patchwork-Id: 11157535 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D095213BD for ; Mon, 23 Sep 2019 19:49:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ADEBC20665 for ; Mon, 23 Sep 2019 19:49:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sYz0q3tH"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Rt60OX8Z" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ADEBC20665 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jrqDhJXUHej/8TdXfipt7zmUS0d0604gqLVPb6Cu6lE=; b=sYz0q3tH6qvXcZ 77FblDK3UTERWcp0r0USC8QGeUHkQf934RvZGjE0CaUuJ2Q7V/1bMcAwfRcGqYS+W0wBwyje/qVlk bZmSMprYsRpz2vvqvSSQV0z9aFhN5LXJaBbEwFvb2e/xVlt8lDvcf7om7E5vAXxlhfYysM8igou3g ViCDpQOyB85AJCgOJUts9cp8C+9eVEzhBLAMA6NSKe20KABVo6yo34mjLhHljX0kX1pJBdfAtjufR F4UXlXBF2+zK44IuCLvWTjXMgO+ViFM4i6WqDeMGvpQd94rap0jmgWJijpx2g6cDqxidqpg33P6eY 712CWItnuQCtJhnYXDEg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iCULE-0004ZP-8x; Mon, 23 Sep 2019 19:49:48 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iCUL4-0004OL-DR for ath10k@lists.infradead.org; Mon, 23 Sep 2019 19:49:40 +0000 Received: by mail-wr1-x431.google.com with SMTP id v8so15351074wrt.2 for ; Mon, 23 Sep 2019 12:49:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wFJ6zWicZY8f8WavDOdQQjHVPH6dk+nXo+I5rtEql2Q=; b=Rt60OX8Z2aP2lClSHF94qpReq81yO6UTZhBKFzpRND/bqG0AbzEElEMBwTCFa3NgJ0 Kil6nR38vaTtwgYB6TQKSuLhKZnmk7KTpotl8+TBRGiv1Z4VtdMupC/sPsHKc5J18hgA mPObVg1eCcX3jKX0NwaMIUqqln7FYYL/Nvw0okslxgb0CA7qZV8NrIcoCo9kPd7zpIC7 lyJkCIuHmTDubMiCcEgpk1hwhcA5PWDKUzpa6MLVd2BEpmxRL1Vllp+Z1JJgTuNQb61h KPmMlBUCV4TK2MotuMZHXENBQ5oBLsx2f8gw+wGCVdC1S+2SyGS6YlJHlS9wYpnKqX9N bxPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wFJ6zWicZY8f8WavDOdQQjHVPH6dk+nXo+I5rtEql2Q=; b=X1ncplIhHrbA6AI0+mKtUfdaXmLQUgOpDa2pHjmfJWz94liJEfpJbSObv/9K6J9GDD rbOjCoIp8Qzg2Nz7M5arFx8UpRcdl/gqYWUAcnijAGzAyrgL4ulwoCCBeGznH99NdvfU 9aFl5+aDf8BPI9bAVA1b5dDF+CDE2fYwJAFvNB0pzbahMRiJ5cpZWyeWjnKwmAkfXtj9 JrfKgq41Ux5C688V9HBn94qX9j5zmZvOFMK+5EySUndbmoNsT9DjpJTiWoCINQ6nCuSX o1JrqwdtDudSGCkV1F9YKrbDTJVL1t+0R6LPHuz31jowBTyqKotl3O4XQ/h/IfmcbYvC /LbA== X-Gm-Message-State: APjAAAV3q+3x6DC8V767Q50J96RG4QVWVfW0j6HLbKIHN4QHGlapKruD jhzollD8egdpa/dIno4wkwU= X-Google-Smtp-Source: APXvYqw03u9SkaVmEb8taXLU0dIbm/Mctsk+NemQWRnzsl/iUMVEZVxqkRKY019oIu2Ty1RnAh8I9Q== X-Received: by 2002:adf:ce83:: with SMTP id r3mr846161wrn.219.1569268170162; Mon, 23 Sep 2019 12:49:30 -0700 (PDT) Received: from localhost.localdomain ([31.147.208.18]) by smtp.googlemail.com with ESMTPSA id o188sm25108013wma.14.2019.09.23.12.49.29 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 23 Sep 2019 12:49:29 -0700 (PDT) From: =?utf-8?q?Tomislav_Po=C5=BEega?= To: linux-wireless@vger.kernel.org Subject: [PATCH 2/5] ath10k: print service ready returned channel range Date: Mon, 23 Sep 2019 21:49:22 +0200 Message-Id: <1569268165-1639-2-git-send-email-pozega.tomislav@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1569268165-1639-1-git-send-email-pozega.tomislav@gmail.com> References: <1569268165-1639-1-git-send-email-pozega.tomislav@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190923_124938_453352_652D575F X-CRM114-Status: UNSURE ( 8.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:431 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (pozega.tomislav[at]gmail.com) -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ath10k@lists.infradead.org, kvalo@codeaurora.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org Displays lowest/highest supported channels for both 2ghz and 5ghz bands as they're fetched within WMI service ready event. These are shown in a frequency format. Signed-off-by: Tomislav Požega --- drivers/net/wireless/ath/ath10k/wmi.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 3ef6ee3..b7b8072 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -5563,7 +5563,7 @@ static void ath10k_wmi_event_service_ready_work(struct work_struct *work) skip_mem_alloc: ath10k_dbg(ar, ATH10K_DBG_WMI, - "wmi event service ready min_tx_power 0x%08x max_tx_power 0x%08x ht_cap 0x%08x vht_cap 0x%08x sw_ver0 0x%08x sw_ver1 0x%08x fw_build 0x%08x phy_capab 0x%08x num_rf_chains 0x%08x eeprom_rd 0x%08x num_mem_reqs 0x%08x\n", + "wmi event service ready min_tx_power 0x%08x max_tx_power 0x%08x ht_cap 0x%08x vht_cap 0x%08x sw_ver0 0x%08x sw_ver1 0x%08x fw_build 0x%08x phy_capab 0x%08x num_rf_chains 0x%08x eeprom_rd 0x%08x low_2ghz_chan %d high_2ghz_chan %d low_5ghz_chan %d high_5ghz_chan %d num_mem_reqs 0x%08x\n", __le32_to_cpu(arg.min_tx_power), __le32_to_cpu(arg.max_tx_power), __le32_to_cpu(arg.ht_cap), @@ -5574,6 +5574,10 @@ static void ath10k_wmi_event_service_ready_work(struct work_struct *work) __le32_to_cpu(arg.phy_capab), __le32_to_cpu(arg.num_rf_chains), __le32_to_cpu(arg.eeprom_rd), + __le32_to_cpu(arg.low_2ghz_chan), + __le32_to_cpu(arg.high_2ghz_chan), + __le32_to_cpu(arg.low_5ghz_chan), + __le32_to_cpu(arg.high_5ghz_chan), __le32_to_cpu(arg.num_mem_reqs)); dev_kfree_skb(skb);