From patchwork Wed May 8 00:33:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 10934009 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-2.web.codeaurora.org (Postfix) with ESMTP id 39134912 for ; Wed, 8 May 2019 00:33:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2852526E51 for ; Wed, 8 May 2019 00:33:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AC9927F82; Wed, 8 May 2019 00:33:30 +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 4A49226E51 for ; Wed, 8 May 2019 00:33:28 +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=Bqc7r2Z0FkQF4O1bcwKCnZAcMTc52kyZ/erBdc+A0kA=; b=DvI sEKcuSol2vAPJb+Bw/mnaIv+lUoHaKCNoSemxhsWph7n+5mn4Gkh8eC0RruT0PShDodGU3vRw/1pJ mp2hJaF9GORVEuQX1M9ruTPjvbKCh6q8sVC9JcpsMn7DvTVVedaNCexjmEMuknsvcYay5WJijd8XA MHUPQHGB2n4YQLzVlTrhd8Gus2JjDiBfO44veVpSj1Mp6iwK74BzS+dKRBhL1SSYJFHgjd+2nUlYC IMWpH4h1zTytoOiTHqS69FNE+xcxb2AR0/5MV06LFM+5RSD+sT7i8aF3T8YZwQ5sjt5pGcbRLoRb6 0O7Ea9Od33jlyo66ipobMzK4N2lI/NQ==; 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 1hOAWT-0006ox-Iu; Wed, 08 May 2019 00:33:25 +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 1hOAWR-0006ob-HW for ath11k@lists.infradead.org; Wed, 08 May 2019 00:33:24 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CCFD860300; Wed, 8 May 2019 00:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557275601; bh=XcFCMLgdvKka/jk4MJ1FPuSHvGEJSO3MImeR/Pdf79s=; h=From:To:Cc:Subject:Date:From; b=Lgm0HNuVK1tZgnnNFTQj7Z3PDySg/452jEjjcVrRuZb8UVGvXVpLNg1POZ4ZsTF4e 6srDVIs/0yb9LZmqLb53NZki3SBxQJVemJ8W8jFBLVhHIdCc++2qTNj9y9LDM1/178 hCWSgF8j3nqbOzruK19yQXKcIM+z/JIEDd+W/Ja8= Received: from smtp.codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: rmanohar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5339F609D4; Wed, 8 May 2019 00:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557275601; bh=XcFCMLgdvKka/jk4MJ1FPuSHvGEJSO3MImeR/Pdf79s=; h=From:To:Cc:Subject:Date:From; b=Lgm0HNuVK1tZgnnNFTQj7Z3PDySg/452jEjjcVrRuZb8UVGvXVpLNg1POZ4ZsTF4e 6srDVIs/0yb9LZmqLb53NZki3SBxQJVemJ8W8jFBLVhHIdCc++2qTNj9y9LDM1/178 hCWSgF8j3nqbOzruK19yQXKcIM+z/JIEDd+W/Ja8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5339F609D4 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=rmanohar@codeaurora.org Received: by smtp.codeaurora.org (sSMTP sendmail emulation); Tue, 07 May 2019 17:33:19 -0700 From: Rajkumar Manoharan To: ath11k@lists.infradead.org Subject: [PATCH] ath11k: support HE max rx aggregation subframes Date: Tue, 7 May 2019 17:33:13 -0700 Message-Id: <1557275593-2994-1-git-send-email-rmanohar@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-20190507_173323_600388_16DCAFB4 X-CRM114-Status: UNSURE ( 9.18 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rajkumar Manoharan MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP HE supports upto 256 subframes in an A-MPDU. Hence update max_rx_aggregation_subframes to 256 at device registration. Since tx A-MPDU aggregation is offloaded to HW, no need to update tx aggregation subframes size. Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath11k/mac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 2ee0650fe9c1..6b5a466e27ef 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -4961,6 +4961,7 @@ static int ath11k_mac_register(struct ath11k *ar) ar->hw->queues = ATH11K_HW_MAX_QUEUES; ar->hw->offchannel_tx_hw_queue = ATH11K_HW_MAX_QUEUES - 1; + ar->hw->max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF; ar->hw->vif_data_size = sizeof(struct ath11k_vif); ar->hw->sta_data_size = sizeof(struct ath11k_sta);