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 68CF01BDED; Sat, 3 Feb 2024 04:16:37 +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=1706933797; cv=none; b=VlHvWQNS9tC4FsuzXsWymm5OV7xWd2QN2/iyk87QY+n2RUsSi7IAUSwgDVdE6HR6VlFuK3nsW97BSOdqLfJn52vW0Wqo9eUr9tCDjWdEkru4zErItU5d4OzaC+9NGVTFuyquixBmQ4cdztN4LVZ8lGuA2030PkRifDbgcLwea/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706933797; c=relaxed/simple; bh=AvpDTkJXUhpJEZWSMAVhZuuBQrpnGdYkypdwPuCXvTA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=m9tWhcxIJF08iOycPZXOtL7GoiFwHWLhoQNcNTHkVfx8gG0QFwBLrbHpwQ8xX+lQ4T7vQ+JZvt+agAr+9AJzPucgKPVuRXRUQ2N8WFgmySHRW1ZmlVqWNMo+D1s3w6mydg8Lz3InztQ7iHjc2P4A45yYPCa/X03XnwAxwiq6GYE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iR537i3+; 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="iR537i3+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33516C43390; Sat, 3 Feb 2024 04:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706933797; bh=AvpDTkJXUhpJEZWSMAVhZuuBQrpnGdYkypdwPuCXvTA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iR537i3+uZLSynX0RRYszRIQLmYJq/kylFXmiUnF44OB0vXCu44xSPD0MZWuqSKG2 6NCQ+NSqVSPS/s/VY5kElgOJSx8SyK8uGVgwm9HHA440ukcH01AhXnSMCjvHwPKPcS iZnXKYPaoYCG+SbrOvSxYL/NQ28RKXPngFv/IxtQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Lingbo Kong , Kalle Valo , Sasha Levin Subject: [PATCH 6.7 108/353] wifi: ath12k: fix the issue that the multicast/broadcast indicator is not read correctly for WCN7850 Date: Fri, 2 Feb 2024 20:03:46 -0800 Message-ID: <20240203035407.182057168@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240203035403.657508530@linuxfoundation.org> References: <20240203035403.657508530@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.7-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lingbo Kong [ Upstream commit 7133b072dfbfac8763ffb017642c9c894894c50d ] We observe some packets are discarded in ieee80211_rx_handlers_result function for WCN7850. This is because the way to get multicast/broadcast indicator with RX_MSDU_END_INFO5_DA_IS_MCBC & info5 is incorrect. It should use RX_MSDU_END_INFO13_MCAST_BCAST & info13 to get multicast/broadcast indicator. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 Signed-off-by: Lingbo Kong Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20231206141759.5430-1-quic_lingbok@quicinc.com Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath12k/hal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath12k/hal.c b/drivers/net/wireless/ath/ath12k/hal.c index eca86fc25a60..b896dfe66dad 100644 --- a/drivers/net/wireless/ath/ath12k/hal.c +++ b/drivers/net/wireless/ath/ath12k/hal.c @@ -889,8 +889,8 @@ static u8 *ath12k_hw_wcn7850_rx_desc_mpdu_start_addr2(struct hal_rx_desc *desc) static bool ath12k_hw_wcn7850_rx_desc_is_da_mcbc(struct hal_rx_desc *desc) { - return __le16_to_cpu(desc->u.wcn7850.msdu_end.info5) & - RX_MSDU_END_INFO5_DA_IS_MCBC; + return __le32_to_cpu(desc->u.wcn7850.msdu_end.info13) & + RX_MSDU_END_INFO13_MCAST_BCAST; } static void ath12k_hw_wcn7850_rx_desc_get_dot11_hdr(struct hal_rx_desc *desc, -- 2.43.0