Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp210933rwl; Wed, 29 Mar 2023 00:09:06 -0700 (PDT) X-Google-Smtp-Source: AKy350blDn3WAuHjQY9ADiTmYV5PWzH7bEBQTchNX5OY3HO+PNOEK/aHiHxSnIEZOZcELURXKqdB X-Received: by 2002:a17:90b:314c:b0:23d:42d4:b9f5 with SMTP id ip12-20020a17090b314c00b0023d42d4b9f5mr20873472pjb.37.1680073746254; Wed, 29 Mar 2023 00:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680073746; cv=none; d=google.com; s=arc-20160816; b=06fuAZfRBRwK9V2eDzh8DIL/JjJNGgRtwRhaxGHYN6HqvO83cgTRzy5JBZdRGyypJx hc0HMlSfaIN4yl6Wm1NvC9hvvPl0qZ0ooZW5EbwYVeCkmYJNAgI2v3NRMuBju67CURiZ ypP5hZOSExG8CGVSwFLwW5sOpPhfeGj8JaJr9SmDgS7xjq+RwKA6jv1UTSVCvHsaOu1+ DhJI3hbuxI2RuV8sSZisYjjGmWXj5WgFFZEqV15i2f4C5XnjJjJOnuLFKPAPFMtF7ust zNH5Bz2P11zdxS3H+TPWUXFPnmIayKjCcLX1Jj3XO5BrxctipgxBUZxAYIRY3D/oRVLG JYHw== 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=lhpvQyZwXHtvtrw/VU/gKHn6JlG/U1VdVTwxatnSz7s=; b=a6+NPkbPnVFqtYPb7t2vbKPhPh99x98KFGrCnlgYHJF1qcqsyEol5KJWDyHEazSdPL cVWRVKN4bSCOHRsAThpyQQNLazCCWI5TjYZF9565KNSA+aVx0ZlagrB+nv56yeMcfbf5 zxD/rdz9ja+eeHjYbjs0bb1qTu8HP6TMQPgB2zcGhYsX6K7+3v6LMPQdIFuZR8Ah5XVY qOD+9YpmJfam4gsLM7EmtcYaFkg3qMA89w9qQM+B0wF7z5cbpL5IsoYxhd/mfeZsbB58 Z6ImyN2HEef9vdiOXRvPl2gPMULm5vGAsblgpWiwvFjmjzdVcu0pWT3uqyusT7Ei/i3Y /cAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=He+NcAkI; 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 nl2-20020a17090b384200b0023fb5f56c10si926841pjb.152.2023.03.29.00.08.59; Wed, 29 Mar 2023 00:09:06 -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=He+NcAkI; 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 S229813AbjC2HIU (ORCPT + 60 others); Wed, 29 Mar 2023 03:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbjC2HIT (ORCPT ); Wed, 29 Mar 2023 03:08:19 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A7D0213A for ; Wed, 29 Mar 2023 00:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680073682; x=1711609682; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yJ+ywQx4b92MwxtvKvAOsg3h/Qf1952rBdS2hX00baM=; b=He+NcAkIrMgbXXR7EaTBxErkLSSjvN4MDeI2gBQGpQVhQpOaKCMZVJH7 Z50mAAaytdb8xTW5ktTNgCftdOfxPCHF6WkZZWVtKDsyptuIpwwPFwDX9 urbvTSLCik29Brhrcp4rV+OJeehjgh1guhZ6PBDzw3rPfY8p07j/LJVbi 8XcGEsm5/sUZY1EqoP0B9BoYnqFIQyORUALFAW/Ug+kewzG1AbOOMFdXh fLtBWpIQ8s+nMEvYsehN2GeAQAk64B7F1WYBJdTMsEhYAZ7XoITQmHIXX SVPSQFLdmiHqfftwksOhI3/AtGzMZdrVR2VX4V1+NkYuLUK67v06JolA7 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="320450910" X-IronPort-AV: E=Sophos;i="5.98,300,1673942400"; d="scan'208";a="320450910" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2023 00:06:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="795111389" X-IronPort-AV: E=Sophos;i="5.98,300,1673942400"; d="scan'208";a="795111389" Received: from sfrank1-mobl1.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.214.228.42]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2023 00:06:38 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Benjamin Berg , Gregory Greenman Subject: [PATCH 23/34] wifi: iwlwifi: mvm: initialize max_rc_amsdu_len per-link Date: Wed, 29 Mar 2023 10:05:29 +0300 Message-Id: <20230329100039.5bf521fe58b8.I73fe585f0ff75d41b5afd32077e3d6e48c90db2a@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230329070540.2739372-1-gregory.greenman@intel.com> References: <20230329070540.2739372-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE autolearn=unavailable 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: Benjamin Berg Initialize max_rc_amsdu_len per-link both on state change and when a new link is added. Signed-off-by: Benjamin Berg Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c index 34b85a9a27af..5e382981bfa2 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c @@ -998,6 +998,9 @@ int iwl_mvm_mld_update_sta_links(struct iwl_mvm *mvm, if (WARN_ON(ret)) goto err; + link_sta->agg.max_rc_amsdu_len = 1; + ieee80211_sta_recalc_aggregates(sta); + mvm_sta_link = rcu_dereference_protected(mvm_sta->link[link_id], lockdep_is_held(&mvm->mutex)); -- 2.38.1