From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D509413C801; Tue, 18 Jun 2024 12:41:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718714518; cv=none; b=rb3pJKOtI3Wyryl4XbxELxgDXmgAGQy6XhfT/0CVjksyf0ZTC/qqaog8ERMoBP/MTYbjuwkz2nVp2mOIoWTtnVMGFGUdx37zC+7P2cBVYFSsDP+k+2Fi5/xHnzx5ko9S/cWbRnCNxdYFYPiq40Rt1PVgvdE7VXAlbb8YL26yzw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718714518; c=relaxed/simple; bh=12g1k3KF3g1ap54ZWNVHI13FvDUwGgcpsUFGjd92otE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nk2cPtPRqcMjx6/U1aquA8o5lyBlUSgQ4PkAOWMMv1SuCP/hlJ1I6P4mYK/nWmckK1YmBddPKx9s4EGTkhAmYb1DXBKsx8agxLU55FCq+F5mycGOxccHRHs7wTGxACycGpdmW8p7w3alYRmXgHULDVHACpz4xhe2z/7QFKbbYZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M78C/eyV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M78C/eyV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89F62C4AF1D; Tue, 18 Jun 2024 12:41:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718714518; bh=12g1k3KF3g1ap54ZWNVHI13FvDUwGgcpsUFGjd92otE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M78C/eyVkMcVKy6D+ISIOomx+txVLVVLsYfZ6yTT33AB76EdZUvPfs9SwDB3Ggyuw jD3EwJUPmXlWgOLNcx2n38h9Ak+KZm+5GxFVlFolGfYHXpZes5CNCRcEDOGdqvm2aB /3x3gPhKNisUhq39F3DTIU3Fv86yZFSSXVzaivewtwHetdJwVFKpTDBLb5R2MI7mma rieRpFlUruYniGwQ/XxjCPDM3DlbjwTXm1eAFrPulyNC/hyuWu9JFsX/vtv/fxKxa6 vWCX7Kg83z0McTR2kGAly3dbL31LGC3Ey4a5MitBa5bXuaXLZrlnG9s2xs79a2jeSe nnwSzqKo8gQJg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yedidya Benshimol , Gregory Greenman , Miri Korenblit , Johannes Berg , Sasha Levin , kvalo@kernel.org, shaul.triebitz@intel.com, benjamin.berg@intel.com, linux-wireless@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 10/21] wifi: iwlwifi: mvm: d3: fix WoWLAN command version lookup Date: Tue, 18 Jun 2024 08:41:09 -0400 Message-ID: <20240618124139.3303801-10-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240618124139.3303801-1-sashal@kernel.org> References: <20240618124139.3303801-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.15.161 Content-Transfer-Encoding: 8bit From: Yedidya Benshimol [ Upstream commit b7ffca99313d856f7d1cc89038d9061b128e8e97 ] After moving from commands to notificaitons in the d3 resume flow, removing the WOWLAN_GET_STATUSES and REPLY_OFFLOADS_QUERY_CMD causes the return of the default value when looking up their version. Returning zero here results in the driver sending the not supported NON_QOS_TX_COUNTER_CMD. Signed-off-by: Yedidya Benshimol Reviewed-by: Gregory Greenman Signed-off-by: Miri Korenblit Link: https://msgid.link/20240510170500.8cabfd580614.If3a0db9851f56041f8f5360959354abd5379224a@changeid Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/mvm/d3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/d3.c b/drivers/net/wireless/intel/iwlwifi/mvm/d3.c index c4c62bcbe67de..f9b004d139501 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/d3.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/d3.c @@ -1796,7 +1796,8 @@ static bool iwl_mvm_setup_connection_keep(struct iwl_mvm *mvm, out: if (iwl_fw_lookup_notif_ver(mvm->fw, LONG_GROUP, - WOWLAN_GET_STATUSES, 0) < 10) { + WOWLAN_GET_STATUSES, + IWL_FW_CMD_VER_UNKNOWN) < 10) { mvmvif->seqno_valid = true; /* +0x10 because the set API expects next-to-use, not last-used */ mvmvif->seqno = le16_to_cpu(status->non_qos_seq_ctr) + 0x10; -- 2.43.0