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 1C7AF156F37; Tue, 23 Jul 2024 18:26:00 +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=1721759161; cv=none; b=hC58X4he8pgnDGP+vjv2oAjrc/wKVu0livWFsLFlXCgw4UINhJqawv4gHwrAYhgPzUlS/6M+0QTSfThH9ANaIN5CUIvs8mzH9cHQsVZXfkf/N411ip0p+M/n2o0bS9VzAlT2YkYAwrLlFL0a2blsskEWuEguNxIZPjKXJ+g6r5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721759161; c=relaxed/simple; bh=Ek4P3ZCGrsX9wPQGzNlyBVJyjp2z8sxQzQ1IFAOChaw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MnkNuMvBUKaKYl9wNhwHAmDol+hCGPHYR+bmDHQdSwg2yR0HpBE5GY0cXcqsux/vrVZpFJWGM2JyrhxhDYakVpRL6n3JDAT2N9FGZDZjf8w1TByJ0xV2YURTYBDBp/A4Fo5ytnSSNWoF8jjhS0rQyWKLQgqW4hCy0y+YSfHt2CQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=t+1WeQRY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="t+1WeQRY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52D32C4AF09; Tue, 23 Jul 2024 18:26:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721759160; bh=Ek4P3ZCGrsX9wPQGzNlyBVJyjp2z8sxQzQ1IFAOChaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t+1WeQRYtwFgoHOBOdTex0wLPxOFWSa8EKuOL+AI6L76Df6TeGyg06l5GG5ufmXWC JKxaUxrEIwCVruAhi0ilct6eXM/MwRB5aFhl3vRGwVn6iz5cz1HhQsxwF+jfV2OCiG OI3qcrcN/duR539tCmlCTd2+JxFb8/v4zuyk0d+U= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yedidya Benshimol , Gregory Greenman , Miri Korenblit , Johannes Berg , Sasha Levin Subject: [PATCH 6.1 022/105] wifi: iwlwifi: mvm: d3: fix WoWLAN command version lookup Date: Tue, 23 Jul 2024 20:22:59 +0200 Message-ID: <20240723180403.839519400@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240723180402.490567226@linuxfoundation.org> References: <20240723180402.490567226@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ 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 88f4f429d875c..9a36ce98b5bfc 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/d3.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/d3.c @@ -1934,7 +1934,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 = status->non_qos_seq_ctr + 0x10; -- 2.43.0