Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3199185rwb; Sun, 20 Nov 2022 09:05:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf4zUj8N/9Af5nkXAbRhkC1bwpAaJbQ62mTvrujbYa+097FQbjpy2n6S5qvWrC4E9kfmf1e+ X-Received: by 2002:a65:5547:0:b0:476:f69d:3ab4 with SMTP id t7-20020a655547000000b00476f69d3ab4mr14246333pgr.124.1668963905654; Sun, 20 Nov 2022 09:05:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668963905; cv=none; d=google.com; s=arc-20160816; b=mL9FRx4gTQS60+cWpszF4Iaj4Lb2k0cDIiFZEukZqyf2c7t3EkgnKRAaYd7M5un51n sJBnxbx7ODhDVm3b7euJ1HGc3mW3IGowXOZdQmR0pEPwklVdSprXLTMpf41B8N3zJFkX HYKtqB7aXGlljBTaZ6fb8MrVj50su3hH4lVnaSyy27a3EGUxWUvJIEoxT1DmyV7dnJGK v9RfXKClSc+QDekr2VRXdlvhPL8MKVdZRoOpOKrApYiMHmtuzrOKyLePQOpWiVe+fvYA 75G4uZYd5mtt6FOKtz2um0u4TxLJshnf96EIYbF1cyiH8uTMKEOZ4P1lpHSV//jryzVR prIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jSAc1wfswqk1D95UEG7PXdCpUkKPz2x2TSxJIeRr04E=; b=Pl8km6XgGBckZXuYkAA1kVq/rW1nuUHM+P8XPyf41VQIQLAHgEO5Gj9+VKTqzu/CGc NBfOigFTmWU+uaiPLAvHkfMlGiT8iee+BzrGyhk3trRDAROnAhLeEbA2H0utKUsvCAtC ISVmYuIu3EH5p7pw1vsG1U+zU6UtXdSGVV/YKQD8u6pzaYQFEDLoTR+zhbsH+BQ8q2Ci FK2tv24WBfatJuyVSVL4vSTyZOLmOVQaDWN7VilXq38wIrC0K5evyrm1T7KZ8/HaCaxY NgSYNdiMvKXsdYKCVTC0IG4Odl3kN/XGIfU/4NoNX1Bg0r4ROJBNgif1FWNRT0S3LEYv iMJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nvw7ELNq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j19-20020a62b613000000b0055214e179d5si7802035pff.63.2022.11.20.09.04.57; Sun, 20 Nov 2022 09:05:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nvw7ELNq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229760AbiKTRBj (ORCPT + 68 others); Sun, 20 Nov 2022 12:01:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbiKTRBh (ORCPT ); Sun, 20 Nov 2022 12:01:37 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 610482EF3B for ; Sun, 20 Nov 2022 09:01:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668963697; x=1700499697; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=d6gNVfjhueUE5h+nRmlojDxwzPFU3ByCW9XzpG4EIns=; b=nvw7ELNqZFO/V0nVdBZUrSSn7aHijVYrpU06MNBYYKk6IKHyLBmfFOCA Ewx5zztIbkAb2OwLO6Daekniuxh+gm2zOgkQDOkguIYx0YAG6sV3CZNQD +163RpT/6XBNvuA4rn0L2dJ64091br3EJEzb/2XmS4O0wlf7hmr31nRvk G30D/cLBHvoX82f4PVZ9fU0Lwa6/zIeM0qqv56v2n3TAAoA61h8TpdSBK biNvirzY+O+jFxuHhJnlwDKVA0b4Y5He6t3KwlbsG77Dc2kBtj0FzQPVf PCzaU7Y0V01tQgCoTTWHlGskoldhnlB8tHJ7AOvBx+uBdIApLomCJnxJO w==; X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="315234879" X-IronPort-AV: E=Sophos;i="5.96,179,1665471600"; d="scan'208";a="315234879" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2022 09:01:37 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="765719476" X-IronPort-AV: E=Sophos;i="5.96,179,1665471600"; d="scan'208";a="765719476" Received: from dwiener-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.249.87.2]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2022 09:01:33 -0800 From: gregory.greenman@intel.com To: kvalo@kernel.org, johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Mordechay Goodstein , Gregory Greenman Subject: [PATCH 4/9] wifi: iwlwifi: mvm: add support for EHT 1K aggregation size Date: Sun, 20 Nov 2022 19:00:34 +0200 Message-Id: <20221120185147.d82e3d7bf651.Ie4d90c376c822694f4523ff0fb5731f20004c24d@changeid> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20221120170039.1788067-1-gregory.greenman@intel.com> References: <20221120170039.1788067-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Mordechay Goodstein In 11be we can receive 1K aggregation size so update our max HW rx aggregation for mac80211 usage. Signed-off-by: Mordechay Goodstein Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c index 9699433137bc..310eb3fde386 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c @@ -1077,6 +1077,8 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg, static const u8 no_reclaim_cmds[] = { TX_CMD, }; + u32 max_agg = trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_BZ ? + IEEE80211_MAX_AMPDU_BUF_EHT : IEEE80211_MAX_AMPDU_BUF_HE; size_t scan_size; u32 min_backoff; struct iwl_mvm_csme_conn_info *csme_conn_info __maybe_unused; @@ -1098,12 +1100,12 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg, if (!hw) return NULL; - hw->max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE; + hw->max_rx_aggregation_subframes = max_agg; if (cfg->max_tx_agg_size) hw->max_tx_aggregation_subframes = cfg->max_tx_agg_size; else - hw->max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE; + hw->max_tx_aggregation_subframes = max_agg; op_mode = hw->priv; -- 2.35.3