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 793CB3FD4; Mon, 23 Jun 2025 21:48:29 +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=1750715309; cv=none; b=X9QDeF3O3Uz9GZBNVV2vJ8iVboxbRn4wDhPC7GhqUUXLgwYZyo2pntLt44NyFWCpONU7+qQIwR0Pzir1maO1AyKXHsIea0z0EIjLRm3B9Or8Ghm2sRauPxQCi1xhvNCREZQFV/k4uTjjf4nlm/IbLscgylr3fL5c5r3EzPZdIsc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750715309; c=relaxed/simple; bh=eXYYSW7TlsNBYiQSlbfOhbNRRD3buLqhMtMqYnCLEPk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JyxJ8u2nJQkE1dZrWBB4rMOkL3f3yf0G9by552bnNXWw/FBjFpYdoRJizTxJ7r375iev3+EZYirw2Rw4zW6CiCxwGCApdQUmZ2n5cMX/6bsZiprKcSjWtufMYVfMcqAsQ/U5rtvhfbss65wye+5nRmEFC+H7aBAzo1nLHBPPCxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tWqOJ2wt; 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="tWqOJ2wt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F78BC4CEEA; Mon, 23 Jun 2025 21:48:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750715309; bh=eXYYSW7TlsNBYiQSlbfOhbNRRD3buLqhMtMqYnCLEPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tWqOJ2wtbTsbt+WLNKDtL0WfOku2dcR24/hBeZ3ajHfPNIsuZkSvtk0cen72tQpua 5hM/zTwvLLbm4ZTwVbbusDy/iIzNu/PYuMxsDmEeWqbxP7OphldRTmxZtRYBvnLEp3 v2/RTa9rRKpi3YYAszNm1Di5IPPAKe66YMwscA9I= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Hari Chandrakanthan , Nicolas Escande , Vasanthakumar Thiagarajan , Karthikeyan Periyasamy , Jeff Johnson , Sasha Levin Subject: [PATCH 6.6 191/290] wifi: ath12k: fix link valid field initialization in the monitor Rx Date: Mon, 23 Jun 2025 15:07:32 +0200 Message-ID: <20250623130632.606817390@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250623130626.910356556@linuxfoundation.org> References: <20250623130626.910356556@linuxfoundation.org> User-Agent: quilt/0.68 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: Hari Chandrakanthan [ Upstream commit 2826139f9295821fe2b049318a1cc057ec003131 ] Currently, the link_valid field is not initialized in the monitor Rx path. This can result in random values for the link_valid and link_id leads to undefined behaviour in mac80211. Therefore, initialize the link_valid field in the monitor Rx path. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Signed-off-by: Hari Chandrakanthan Tested-by: Nicolas Escande Reviewed-by: Vasanthakumar Thiagarajan Signed-off-by: Karthikeyan Periyasamy Link: https://patch.msgid.link/20250324062518.2752822-2-quic_periyasa@quicinc.com Signed-off-by: Jeff Johnson Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath12k/dp_mon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath12k/dp_mon.c b/drivers/net/wireless/ath/ath12k/dp_mon.c index 35f22a4a16cf2..69bf75ebd7518 100644 --- a/drivers/net/wireless/ath/ath12k/dp_mon.c +++ b/drivers/net/wireless/ath/ath12k/dp_mon.c @@ -1077,6 +1077,8 @@ static void ath12k_dp_mon_rx_deliver_msdu(struct ath12k *ar, struct napi_struct bool is_mcbc = rxcb->is_mcbc; bool is_eapol_tkip = rxcb->is_eapol; + status->link_valid = 0; + if ((status->encoding == RX_ENC_HE) && !(status->flag & RX_FLAG_RADIOTAP_HE) && !(status->flag & RX_FLAG_SKIP_MONITOR)) { he = skb_push(msdu, sizeof(known)); -- 2.39.5