Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2853860lqp; Mon, 25 Mar 2024 11:04:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWppzu//sdUkOt3xETHUhsbgB9lQuSqbA6m0r3inVW/xCh3hl39T9Ln2aDR6a7e0onYf2r7FhPIsJVFYhVgTeA+X1M1pBDt4+d3hrf1qQ== X-Google-Smtp-Source: AGHT+IG2OQDDQllf0vFGAlL1kOcgzm+MrwKd9hBRveJIDQVHQHK5pZMWgQCj+djJ320TveJVkNgJ X-Received: by 2002:a50:d54b:0:b0:56b:ec02:a148 with SMTP id f11-20020a50d54b000000b0056bec02a148mr5699414edj.21.1711389862361; Mon, 25 Mar 2024 11:04:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711389862; cv=pass; d=google.com; s=arc-20160816; b=fnnhxqzbGoJrubV5rlG/gcsmOE2NB25e3/Lj7Um5+D4sQRvYaIOydEpl+YciRenvco Zs3YGvzrYD1NhMmWME8lp4qdAZBL5RhkN6wBEN5evV2CufGRW6PUdbg1j0GYiC/jP/VX 9e2UReSeVH31LNYMjt/Whg4TJLrWM2AyicaIaUFM/lgDiCBW7SqmUs7u48mAHWG8m6OO s4HB/Iyr2vVyLMChffULVKSrX3DB5iLJkalLbiWkD0IGleE+cWl0HBUln052H/99954N Is7Vp5+jrhDYqj03esBV0rlEFfbUWuGohM2gQ+SZNDzOG5MJLNXtRXoNo/+pXCvFHv0A kzAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Nkc4z6RGvb2lUDk7LGBhj10I/D6w0DvGqK3io/S7EsQ=; fh=tCpcduub+W18RjNB2k78mJfQ2q9sRCRWMUqUx3+Ywx0=; b=Tpz+XD9JdC/by0+3/tXLjJhno8gEwSw99y6oSyxwEnCEHmi6VjTnMvXk6we0/o71r4 BRbFzOi4CDsCVKD+ETRhtCwYKVVzvr5Gx8dU3PnhypBliaH9zmeKV3L+D6eYN1DEPnMW WgTqIMoahMdS57OG5crloG/nD+XmFvJTK8QQDw7/T6ZUqx8b02iUo4AQMccTxKOr649K /b4BZdocSCLZlNxFXiuZRlK+NhvbQcwqOneucFhX6ReHyyj3ZBnmGWJt35HMC1nhnA4/ DgfJx+Rbnmt0rDXWynx5h9c6yI06FHQgnIf6HyxLwmI0xoC7KDz5dDGF5KltHyLip/R5 2UmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=j4ASV0hS; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-5224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o13-20020a509b0d000000b00568b3bf415esi2729702edi.424.2024.03.25.11.04.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 11:04:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5224-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=@sipsolutions.net header.s=mail header.b=j4ASV0hS; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-5224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 367791FA2B25 for ; Mon, 25 Mar 2024 17:52:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41BCA1327F6; Mon, 25 Mar 2024 17:08:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="j4ASV0hS" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 A56B438DFB for ; Mon, 25 Mar 2024 17:08:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711386537; cv=none; b=eaGMs6lbpJIpZE5QhXnIOxqU4WZ/MzFX5RlfwavYvu1c06/R2RCz4QswHtBuHh+JK5g4rnqUefi4GxK6vVly7eZTXhkBCvz5BkP7lEE26gr/JFnb5lpYp1DuUFVPlfbuBhMYbAjPEnSw+uW1AKlOqqoJbbwH/6o4bQKBYROWvek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711386537; c=relaxed/simple; bh=+Eca2tEmbDkrVwprTC111l2qZDY5XxMd4AZWUK9a3DU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YCJ5Gm2XBB2GYmwETDpZD8OXbmL5aM5Sj7D9+jfbJdzEpsMKtv7GCVF4mqk507qEDDdgRI8ljaONO2Devcrin8MrLLnDx4yT/ZO1o8+lJWJsQbB9dBpI9Sh9qr5VuVKZjeaGSabkiB5IYUnpeNwMntOC3eRbW06t8mkLpZdevi8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=j4ASV0hS; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=Nkc4z6RGvb2lUDk7LGBhj10I/D6w0DvGqK3io/S7EsQ=; t=1711386535; x=1712596135; b=j4ASV0hSEtNgy42pAQIBMeaQRKso+AuKslptcip82UwuvQ8+fHTjdWRg289wWXuK67bHnaOf+5w vltwzt+KYvby/E9QQlWo2XlDluDMWNT2DLjetFjvh1eQazeKmOwY1vjfwUAKXdr4j9sWbFO0U1Xh1 3D2ZtJ7PQI/I5ejq5Lsli6cBBDpc5kXr3NHLxnJsnlvLuKIP3XdmjWT76nOiySTR6CVjJym8Ssrpl 51IJZSnOKQ2Ro5G+7La8JZcIdhaqEnWFk3Xxjp9Cs3NjKDf2M+g7knrcMZWZqbLJ87iBpyzBuo9CD 1zGG2HjsxVZV596Z4GJDTx3a2Pe2vUB2Us7A==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1ronoa-0000000DyFB-4ACf; Mon, 25 Mar 2024 18:08:53 +0100 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg , Daniel Gabay , Miriam Rachel Korenblit Subject: [PATCH] wifi: iwlwifi: mvm: fix check in iwl_mvm_sta_fw_id_mask Date: Mon, 25 Mar 2024 18:08:51 +0100 Message-ID: <20240325180850.e95b442bafe9.I8c0119fce7b00cb4f65782930d2c167ed5dd0a6e@changeid> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Johannes Berg In the previous commit, I renamed the variable to differentiate mac80211/mvm link STA, but forgot to adjust the check. The one from mac80211 is already non-NULL anyway, but the mvm one can be NULL when the mac80211 isn't during link switch conditions. Fix the check. Fixes: 2783ab506eaa ("wifi: iwlwifi: mvm: select STA mask only for active links") Reviewed-by: Daniel Gabay Reviewed-by: Miriam Rachel Korenblit Signed-off-by: Johannes Berg --- drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c index d9738fe6f967..bd1d6ad44648 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c @@ -36,7 +36,7 @@ u32 iwl_mvm_sta_fw_id_mask(struct iwl_mvm *mvm, struct ieee80211_sta *sta, mvm_link_sta = rcu_dereference_check(mvmsta->link[link_id], lockdep_is_held(&mvm->mutex)); - if (!link_sta) + if (!mvm_link_sta) continue; result |= BIT(mvm_link_sta->sta_id); -- 2.44.0