From patchwork Tue Feb 19 10:01:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhishek Ambure X-Patchwork-Id: 10819599 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB7261575 for ; Tue, 19 Feb 2019 10:01:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94BC82BD51 for ; Tue, 19 Feb 2019 10:01:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 878692BDA4; Tue, 19 Feb 2019 10:01:25 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 5C52F2BDBC for ; Tue, 19 Feb 2019 10:01:24 +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: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:In-Reply-To: References:List-Owner; bh=vRDTtiUtOPMY1zhaW61RKkRXsrSxVGgvK1FukbxgvPo=; b=Or6 jzBUEjKOYkRthgvI6usHnZRoLDE4Pu/IAYHVr7G1tpisVgUoH7oVJh0y2qnXwueLkTaVjjenzztnM VYOqmMyJp+hFcx8TMgfeC4f2yykTump7xdp72Td/wZyOYHy85ZDAkyv7LgY5e5UdxeFFHrdFbV7Hp nY0yoS/VnzKaB8KQIDAvbNnj/pqgXNKIG0dewk4ROb7vs4fPb76XFVT4RxLZUuLpLmWyO+QGhFGM0 tYfn9rXg255aKwDKsHhEGwaCeh/6TsmoiD5BIGekxlszf6bfYDZpQ8iqbp7wBxCpuxvT+jFJsiFwI auG6BKhbBxJl+c3kv5MUHQXKDjAVDIg==; 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 1gw2DL-0002l9-JE; Tue, 19 Feb 2019 10:01:23 +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 1gw2DI-0002ki-F9 for ath10k@lists.infradead.org; Tue, 19 Feb 2019 10:01:21 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CF3126085F; Tue, 19 Feb 2019 10:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550570479; bh=nDgqUzfo+IDRqFp6PeXCgmeIxqqE8SDfs294he/0LQI=; h=From:To:Cc:Subject:Date:From; b=U0U6sNZcMLxxOoRCOV9tRYC/l57uDVYSizAmzeY3Pue2cYOdW70Hu+1CkQrQZSKYI jvNwZB6e+2X6W49pp8Az0ML3/Th4Wx8k9nNW39nv5+QWyhZDy7F5Y/OBvxJgUwmO9m Q9Hm6Ql6/prYlhEWBh9ZyTsXLFCYK1j81H5RcA/0= Received: from aambure-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aambure@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id BED216034E; Tue, 19 Feb 2019 10:01:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550570479; bh=nDgqUzfo+IDRqFp6PeXCgmeIxqqE8SDfs294he/0LQI=; h=From:To:Cc:Subject:Date:From; b=U0U6sNZcMLxxOoRCOV9tRYC/l57uDVYSizAmzeY3Pue2cYOdW70Hu+1CkQrQZSKYI jvNwZB6e+2X6W49pp8Az0ML3/Th4Wx8k9nNW39nv5+QWyhZDy7F5Y/OBvxJgUwmO9m Q9Hm6Ql6/prYlhEWBh9ZyTsXLFCYK1j81H5RcA/0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BED216034E 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=aambure@codeaurora.org From: Abhishek Ambure To: ath10k@lists.infradead.org Subject: [PATCH] ath10k: update the max num of peers supported for WCN3990 Date: Tue, 19 Feb 2019 15:31:08 +0530 Message-Id: <1550570468-25869-1-git-send-email-aambure@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190219_020120_539147_7BC387B2 X-CRM114-Status: UNSURE ( 8.83 ) 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: Abhishek Ambure , 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 WCN3990 firmware versions WLAN.HL.2.0-01617-QCAHLSWMTPLZ-1 & onwards supports maximum 33 peers including self peer. To support maximum peers, send updated peer param to firmware during initialization. Tested HW: WCN3990 Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1 Signed-off-by: Abhishek Ambure --- drivers/net/wireless/ath/ath10k/core.c | 6 +++--- drivers/net/wireless/ath/ath10k/hw.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index a1b2aea..336c6a4 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -560,10 +560,10 @@ .sw_decrypt_mcast_mgmt = true, .hw_ops = &wcn3990_ops, .decap_align_bytes = 1, - .num_peers = TARGET_HL_10_TLV_NUM_PEERS, + .num_peers = TARGET_HL_TLV_NUM_PEERS, .n_cipher_suites = 11, - .ast_skid_limit = TARGET_HL_10_TLV_AST_SKID_LIMIT, - .num_wds_entries = TARGET_HL_10_TLV_NUM_WDS_ENTRIES, + .ast_skid_limit = TARGET_HL_TLV_AST_SKID_LIMIT, + .num_wds_entries = TARGET_HL_TLV_NUM_WDS_ENTRIES, .target_64bit = true, .rx_ring_fill_level = HTT_RX_RING_FILL_LEVEL_DUAL_MAC, .per_ce_irq = true, diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index fe6b2ed..67413ae 100644 --- a/drivers/net/wireless/ath/ath10k/hw.h +++ b/drivers/net/wireless/ath/ath10k/hw.h @@ -763,9 +763,9 @@ struct ath10k_hw_ops { #define TARGET_TLV_MGMT_NUM_MSDU_DESC (50) /* Target specific defines for WMI-HL-1.0 firmware */ -#define TARGET_HL_10_TLV_NUM_PEERS 14 -#define TARGET_HL_10_TLV_AST_SKID_LIMIT 6 -#define TARGET_HL_10_TLV_NUM_WDS_ENTRIES 2 +#define TARGET_HL_TLV_NUM_PEERS 33 +#define TARGET_HL_TLV_AST_SKID_LIMIT 16 +#define TARGET_HL_TLV_NUM_WDS_ENTRIES 2 /* Diagnostic Window */ #define CE_DIAG_PIPE 7