From patchwork Tue Apr 10 07:39:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhi Chen X-Patchwork-Id: 10332453 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 D6E2C6053C for ; Tue, 10 Apr 2018 07:41:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C745828C75 for ; Tue, 10 Apr 2018 07:41:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC1CD28C7A; Tue, 10 Apr 2018 07:41:04 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6C14A28C75 for ; Tue, 10 Apr 2018 07:41:04 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=p0B7bAWqn352JU8Wva69Up+B/6hkNi1x465dIFLEpHg=; b=cBkMhOIV2ZkeRFPojAdMqlavJ0 IOjZT2gPvrW6FrUscXlNrkMt6ZOcxN2UN0HFojsWUUMCigvzdmBQKMh3sHtO03i/0C9eaonf9P9td aKGsiWOgI/WpbDkLhaKSb0UMIlHjeUS+jtJtX/+/x8DmUHAVxpBM6mep5S4C7huj/RDApW7Xzx41w tnT/Tr7j9MqD6ukGdPQKYuWHPMKlDMi8PTRGMaDGpraWtDcdI1gvJG/l3lil4zkkb1Kef9y7Sw33B nmtD96HpszAaqcaDzysg+DNMtVei+Jldtl8nVmt8sEqmYh8ZDpoWIxSvxa80TJB5PPk6YA/A9hNjt adcZiGAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5ntg-0000fp-Gp; Tue, 10 Apr 2018 07:40:56 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5nrU-0006iu-TX for ath10k@lists.infradead.org; Tue, 10 Apr 2018 07:38:42 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 17F5E60AE0; Tue, 10 Apr 2018 07:38:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523345917; bh=b1XoJstE+5MiYBmRmb0duW3WkEbiI/HSNzjLzLfvWIo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=euasxB2Z+dh9uivLMz2BZHQNNz99PTX7/YSO31h44iVnvZ/FP+ZWVvjlMfyJmyy37 GUJiade3A+0/WoPhOMxT/Z7zSHgVWhvE4xZlgKFrgAuhxXIpp1GsCVCd4XuZdvkeSI BgbhYNa0k+e2VLIv+/NaH1CmqBf/XntX5lbY/m2s= Received: from smtp.codeaurora.org (unknown [180.166.53.21]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: zhichen@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A3F6D602B6; Tue, 10 Apr 2018 07:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523345916; bh=b1XoJstE+5MiYBmRmb0duW3WkEbiI/HSNzjLzLfvWIo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gdA8qhvbs9Fst1bx49K0hLqrlaAvee0PG7A8zFra3i6OdgxR+VoX4TPIARdRtS5VL w3F8ipU7HlSUgfotWLA9O10NJhcKGDgqK36ZDmQFkx599kDKZ6uZKKdpG45weshYg/ cluNmiYdNgZJy4vPIkoVy0+LBAWAo5oFh5R4xn48= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A3F6D602B6 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=zhichen@codeaurora.org Received: by smtp.codeaurora.org (sSMTP sendmail emulation); Tue, 10 Apr 2018 15:40:21 +0800 From: zhichen@codeaurora.org To: ath10k@lists.infradead.org Subject: [PATCH] ath10k: fix tlv 5ghz channel missing issue Date: Tue, 10 Apr 2018 15:39:54 +0800 Message-Id: <1523345994-28800-2-git-send-email-zhichen@codeaurora.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1523345994-28800-1-git-send-email-zhichen@codeaurora.org> References: <1523345994-28800-1-git-send-email-zhichen@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180410_003841_083918_2644EC91 X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zhi Chen , kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Zhi Chen The 5ghz channel parameters of TLV target wasn't passed to host, it caused host can only use lower channels from 36 to 64. Signed-off-by: Zhi Chen --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index 25efbb5..b8985ce 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -1010,6 +1010,8 @@ static int ath10k_wmi_tlv_op_pull_svc_rdy_ev(struct ath10k *ar, arg->phy_capab = ev->phy_capability; arg->num_rf_chains = ev->num_rf_chains; arg->eeprom_rd = reg->eeprom_rd; + arg->low_5ghz_chan = reg->low_5ghz_chan; + arg->high_5ghz_chan = reg->high_5ghz_chan; arg->num_mem_reqs = ev->num_mem_reqs; arg->service_map = svc_bmap; arg->service_map_len = ath10k_wmi_tlv_len(svc_bmap);