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 A270142067; Tue, 23 Jul 2024 18:30:50 +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=1721759450; cv=none; b=Rwp0nmf+WhcLaIZRHb3Z1ZJcNIzlIsVdebg93SPC1S4dtSvO1RfzFlrnAt/PDQSv1PhSVhLSfcGsvdkyb9rE/c2zaiAmPme9bolYquOuty6Ako8F5fTESwORUwsYkQnhVz2E+fzm/FwO3p1TpxRfaLk8TV8Zptw5lKozwDBELgQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721759450; c=relaxed/simple; bh=Yg7YOpk9+iITyybdKsRnHDUj8tegKbcFSeW0EZRSyQU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UZS8SX76kNq5V4cEUYBCwTZrGk2qnlO0PA27ZolOSOK9MrNqhgK5WKkDUBWW4GXmg33hoTjBOrxsi2oVQxBWj8qpYf0+R7nCPBMVlWEWdt2BLosvWcPkQ1TFxI/J6dL1IeS0S0+AKxxLQhvPeVvchE3XPR5/vC6/WRoZ+CdvxUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IFFk22xP; 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="IFFk22xP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B31BC4AF0A; Tue, 23 Jul 2024 18:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721759450; bh=Yg7YOpk9+iITyybdKsRnHDUj8tegKbcFSeW0EZRSyQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IFFk22xPiDS2DnUo2X8rJ+DJs0VBegHLK0fxwquRaKghkSYoWZqQ6LIGPNZM4iPd4 7NkJF3OpoDRtUjRBp0eSv/6XnJav6OnEl5BCnzMXPCelm4P7GbFpPnH+P30OoL5im2 v3BEjHIiMReL1e7tF/vyJ8rAe3pAbPK2RwE3v5MI= 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.6 015/129] wifi: iwlwifi: mvm: d3: fix WoWLAN command version lookup Date: Tue, 23 Jul 2024 20:22:43 +0200 Message-ID: <20240723180405.374502642@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240723180404.759900207@linuxfoundation.org> References: <20240723180404.759900207@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-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 cfc239b272eb7..66aed6635d92c 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/d3.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/d3.c @@ -2102,7 +2102,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