Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp743101lqh; Sat, 4 May 2024 23:21:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV90aDHEVrRqoPgANhdzwxbauodj6K0a7DWLJYNW4dF1BgZKC4/PMUgXBDX78hgIINi585D3O42csSXAZuSGsEnEgYUHdiYFTLT0c4MWA== X-Google-Smtp-Source: AGHT+IE+lfW3vEI0tCGg34gYIv5SrPV2/naFkiwOJm9oHi54bOBJDzqjQuZnoy2D53N6fmjY585h X-Received: by 2002:a17:907:1b06:b0:a59:9a68:7283 with SMTP id mp6-20020a1709071b0600b00a599a687283mr4407929ejc.12.1714890082362; Sat, 04 May 2024 23:21:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714890082; cv=pass; d=google.com; s=arc-20160816; b=QIkChlO0gs4Pn9+4ufwt45lx3WD1aR1XOHKm+IayelhuK6uGRByZeBu8mFHxNTbYch ELj3P6J6FIAs/I75NZgLU1tzdDPas1tBkYeJzppNwWqI7Crz98+M7gFVAoZPGf7xrOav RTggBvkFpES+org0gpkduyhJaw8JoSUxV8sLsRBWrLZLFSb2t7CrSSBSPcAMKdxdD5Fi CXCUDEs3y1xWaQpddGJ5GD4U+eRK6CCP3QRGUs5djZMDGG8bKqfkucSwXw3vBZxMSHt0 o/2hia2RZeSHBC3aZsNUj8UZJ9+WhZVHeg5fwcuXsnBnGjinCAgEpUzFHmJ+27Qm8SAX 1OUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=KpICuP2q6c6ouvb6AP/o0bScGZFItwYSaWv/Fj2HVxo=; fh=TquNsOiV+zNY1csTpltVB6A9QFW5SbuNs6JlqcKCQkw=; b=mPo3cYjJAVb47MqiESiwi3yAPLqtVdQiiofzB67/IuqD2ijrMzyLUR9ACBRvuYyrpW PuZEAIYYHVT7eBA4JwmUIyjyRcg9AF9vq1Hfx6DKrGseARGWEAmL6wKpEHcCqXyBb7Fa W7uxRG1PJs9wCYRVvdSxZKwWFOYYQM8GGg01tWVA1FCTwGSJJ7ZEYBuwTXpcT+bHlHbc EfX2srQid3VNljTg6s1AKWLSPz+ES2/CDDxN0A1yf1cVDivi0YW0ROnSlHJZ/EqMjJ4w 2FEFq9+KgjRWw6RRzNco04EyvHcE4SBcC5RL/6yBnnI0d5zV2qINWR2+zRhotxHHr6mA JWOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=apxNFh97; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-7193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7193-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ch6-20020a170906c2c600b00a59c0a47908si590648ejb.1050.2024.05.04.23.21.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 23:21:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=apxNFh97; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-7193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7193-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 172A61F21752 for ; Sun, 5 May 2024 06:21:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9015F3FC2; Sun, 5 May 2024 06:20:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="apxNFh97" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A5B923B0 for ; Sun, 5 May 2024 06:20:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714890043; cv=none; b=a9qxIytEXsO4QeU85dJC+ADRWt7DZ5gi4SvjIYWd42b+o6Y99PijZIYX9fdOHosKvx2az+bXPtZZA9I9GzQg9z9K+I0ZrvyXNQyznTcMkRHAhVmjek3ZQO11LEtFw7Up3niNenorjHDJZ6gFtCwwmDyVlEe1d+JnLDY8u6aEISQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714890043; c=relaxed/simple; bh=sPyJtZzCzFZ3yFWPiGJb+me5ToFRH0FgdRHpMmu4aF8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=epiHoQuUEi8cULJwa/URF+Q/qhLuYn5JVcEpuCiWtr3uyYCbJDKZmEjWkSyc9m5K+3GHnil7l4G97Oaz5ovphTpCQiBrGiValD6LZpd9S2PQsK1HDA4tF3MDlMNoSoqJVD4jswukg7oKe0KCTnKR8Y0fUTiMMJzmdOyNNs/m4Gg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=apxNFh97; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714890042; x=1746426042; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sPyJtZzCzFZ3yFWPiGJb+me5ToFRH0FgdRHpMmu4aF8=; b=apxNFh971dyiIfOyVQyo3x0JbzshHxc5CB16Oo3GfLUcAtiHl06jy8V3 5z322YziB0QXA0F3u+F93MsBaLohLEnyP6Sbpbu9swma+OlYjc8JGdW8g UrfqGh60ZYwn2hCB4HQEESoOaoXZmOLL2WyuXRxnw2WiLDNO9xt9Zx4VW V4gIRuZOeVGVie6bpitspKJjYE+U8Jmn+YQ1Z1KgfWBkpqSKVfSn0v/p3 uPzXcHvCUECsAhdVOhiWgnALUIJqctHWm3cFXdmAna6VBo1E32vuAkbn1 IbjwGmY2A9w2HU3+aF6QmAn7uhOT/HEGAPJsUWgOVMW71xOW/GsN/ZhwF w==; X-CSE-ConnectionGUID: 2lszbHR+SrKegUvCHFcwLg== X-CSE-MsgGUID: nX3k7J6DQEWdXv6+CjfC9w== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="14461839" X-IronPort-AV: E=Sophos;i="6.07,255,1708416000"; d="scan'208";a="14461839" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2024 23:20:41 -0700 X-CSE-ConnectionGUID: z7l+vV/FQNm1z9d4bDK28g== X-CSE-MsgGUID: O2fFmLdZRoK+Vv+3x/6qOg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,255,1708416000"; d="scan'208";a="27903641" Received: from unknown (HELO WEIS0040.iil.intel.com) ([10.12.217.108]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2024 23:20:41 -0700 From: Miri Korenblit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg Subject: [PATCH 15/15] wifi: iwlwifi: mvm: don't reset link selection during restart Date: Sun, 5 May 2024 09:19:59 +0300 Message-Id: <20240505091420.e81db303f1dc.Ie8267082f623d14376a2052d222e18da6545f34b@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240505061959.825245-1-miriam.rachel.korenblit@intel.com> References: <20240505061959.825245-1-miriam.rachel.korenblit@intel.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Israel (74) Limited Content-Transfer-Encoding: 8bit From: Johannes Berg After restart, we might want to end up with the same config as before, even for multi-link/EMLSR. Therefore, don't reset the stored link selection result in that case. Signed-off-by: Johannes Berg Signed-off-by: Miri Korenblit --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index dbfbbfb5b678..57a0d8af9b28 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -3937,9 +3937,12 @@ iwl_mvm_sta_state_assoc_to_authorized(struct iwl_mvm *mvm, WARN_ON(iwl_mvm_enable_beacon_filter(mvm, vif)); mvmvif->authorized = 1; - mvmvif->link_selection_res = vif->active_links; - mvmvif->link_selection_primary = - vif->active_links ? __ffs(vif->active_links) : 0; + + if (!test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)) { + mvmvif->link_selection_res = vif->active_links; + mvmvif->link_selection_primary = + vif->active_links ? __ffs(vif->active_links) : 0; + } callbacks->mac_ctxt_changed(mvm, vif, false); iwl_mvm_mei_host_associated(mvm, vif, mvm_sta); -- 2.34.1