Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2849394rwl; Thu, 13 Apr 2023 11:42:12 -0700 (PDT) X-Google-Smtp-Source: AKy350bOFb9JBYT2aR0gtXF1uCGWR22lapssiZoxt9VsOa1JXJpUH91tF4aeCa8nOoiHs4h1mfe7 X-Received: by 2002:a17:90a:4d4f:b0:240:d275:d61b with SMTP id l15-20020a17090a4d4f00b00240d275d61bmr2842843pjh.36.1681411332535; Thu, 13 Apr 2023 11:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681411332; cv=none; d=google.com; s=arc-20160816; b=UbWZ6iC7k2E6Q1z54qdUk5hq5Id4zrHuOMQxCRZLpbpf6XCQRwIOIGjl7PBnG1BGBB /wQmp6jAf1FfL2Nv5wEJGZkVZCGpfOy0hIX/6lZaEgwSh8f34wORZiOzsdrMUAuxHxFS ELJ6C5ZbhEDsWH/Mj2gXn+6cO8Ee5S27bn1d8L749TW5CCbIgmXaQN4796U5eHovJkeG gtKSE0Iq7nr7KJ7jg873NEFbIeFwJH2uCmhn2in8kIa0ZB7jhwCJSg7SvQtt8RPhuwNa cKN7neoENUkuEGvcEc0oWgPqhEB+b1gjHr31nMuEUximsVAa8T1qOxZhswC+7WSIjqDx 5p9g== 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=1LicuB7sMmikuSy5Mk8paHFGsIU1GRkxOFebGbS0pPs=; b=YMJjkProdXmCVNxfQheb9K32ntRjaIQEfBxGkJmFnTKqTGnYXg4vlBUjJp8a4KAp7g SWCS6M105TIG3WxDiCNcybi/i3WRlXS4qBliBcYVbOBnBjA1cHx376NMRw+p1F11VXUH jByDCoWACKEJ289KCbUNzIgNPeknh9nx02gy1EcG8B5t/UZ111FwOm136YgwRB0ePb4j RLBW6nCbqZWEZW5PotiRU0+PAAwRwjrmMDrmuM5gfw/hDrs/eqIC3uzcqCjPYFLApQ1U dsrQUcgYOa2ytrqlYiIJygsxrcKAVlWiD+Jrqo6j2829PGvTD7BjJCKONQfKO9iYRg9V G8nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=digwxHhv; 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 d3-20020a17090a628300b00233e50c1117si2413042pjj.71.2023.04.13.11.42.03; Thu, 13 Apr 2023 11:42:12 -0700 (PDT) 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=digwxHhv; 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 S229778AbjDMSlj (ORCPT + 61 others); Thu, 13 Apr 2023 14:41:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbjDMSlj (ORCPT ); Thu, 13 Apr 2023 14:41:39 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46599524B for ; Thu, 13 Apr 2023 11:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681411297; x=1712947297; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YM0Lzt3cFtk5LJxsDkPJAgleetC/oRViexTj+kYKZjY=; b=digwxHhvfmYAGW8NY/S//GpqZ9Wcrv7909WSYYJbOmBdcMvac3PGPK9Y wsSY2FpyzG6paDhn5DdaizlAk/VladDeeaWBvSTy8rgpG2A1CKpVRvDpN ycl42QSgEBbXeyYcLUt7uUzkwz03ZPtRiAYMWtU+LDFaMH8sU79ATzG8u GvxOEep/uVTvEluKwKpQic0QFaZ0KCLQuNHINqi9HB0+RWbs0EeubfNBh DhHfdaJ2N18S76S2WSfpZ9SIjizrBhYRt56X5Akxte4xDQDDWdo0GAb68 74lnXc9H3aXwCBWC/Sb7jxZiSQj+N5jOwRm7gUnP1fsZ0fAeN5guUbqns g==; X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="372126999" X-IronPort-AV: E=Sophos;i="5.99,194,1677571200"; d="scan'208";a="372126999" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 11:41:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="719984345" X-IronPort-AV: E=Sophos;i="5.99,194,1677571200"; d="scan'208";a="719984345" Received: from apeled2-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.251.184.75]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 11:41:00 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg , Gregory Greenman Subject: [PATCH 05/15] wifi: iwlwifi: mvm: request limiting to 8 MSDUs per A-MSDU Date: Thu, 13 Apr 2023 21:40:25 +0300 Message-Id: <20230413213309.e6c518f2724f.I15c13d13b38289edbcd64f67d57cf18f6026457a@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230413184035.1140892-1-gregory.greenman@intel.com> References: <20230413184035.1140892-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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED 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: Johannes Berg Due to hardware limitations when splitting up A-MSDUs, it cannot handle an arbitrary number of MSDUs per A-MSDU. Set the bits to ask transmitters to send only 8 MSDUs in one A-MSDU. Signed-off-by: Johannes Berg Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index fc15636beec0..ac5c4799fa7e 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -227,14 +227,18 @@ int iwl_mvm_init_fw_regd(struct iwl_mvm *mvm) static const u8 he_if_types_ext_capa_sta[] = { [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING, [2] = WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT, - [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF, + [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF | + WLAN_EXT_CAPA8_MAX_MSDU_IN_AMSDU_LSB, + [8] = WLAN_EXT_CAPA9_MAX_MSDU_IN_AMSDU_MSB, }; static const u8 tm_if_types_ext_capa_sta[] = { [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING, [2] = WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT | WLAN_EXT_CAPA3_TIMING_MEASUREMENT_SUPPORT, - [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF, + [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF | + WLAN_EXT_CAPA8_MAX_MSDU_IN_AMSDU_LSB, + [8] = WLAN_EXT_CAPA9_MAX_MSDU_IN_AMSDU_MSB, [9] = WLAN_EXT_CAPA10_TWT_REQUESTER_SUPPORT, }; -- 2.38.1