From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 41A85191F91 for ; Tue, 12 May 2026 03:45:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778557501; cv=none; b=hge1m87H5eAVUsGKBMwGZA+h2MEVp/M5Dl7uH3yNihj/gIutPye1e+jrVGdRElIyFwKFVSUIowZs/nMaKL6R8vEZ2xj9RipsX2MCYBQAQChHZsDrZHfF/oP+k8T87y1VSh1aBeSp6mCRnEJfRIWUrvLOsEzkMBVt71h46nSWccI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778557501; c=relaxed/simple; bh=pcTbfU+kVBSZjhvIM8SIGcFBU81yF/Q9pKIzc2dzPWE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nWM0RgsqFrsGhb5Cuw9LD0h7gVS9E8nMXGTqLW2dB7Qao8llD56N7AMSQQjw+DHpWunUcmgPPp7U9J8bMFhGPuj22yyAQP4Ux0wtP5N8nHhVrx+J85aeaaznOWWdBZTbnmZIQnlmQh9Bts2wdYAfqeK80JPBJy5tusL+u2qPJfQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=ipK20JMm; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=W6wQE5HY; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="ipK20JMm"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="W6wQE5HY" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64BK6dc02186196 for ; Tue, 12 May 2026 03:44:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 8LcGKsBWnDz5XCQZOm9zW7vWC0qVrq2TSrnS/NYguLM=; b=ipK20JMmepJ/AolU OBSuWlCmffWQnpDRlDjswoYK2laHLwLUpL9Zq1RQJxrthc5ZUJ5q/5i0HZO4OXtr YeEZAR9hMdBGZKW3qTkPS9GIRolSYuQxVKtEalo68xaiGEmnn+BDyrQSS3PRT+bP wIh+fQLDKwWL/rE28PGddtvHTqgLXvvHo0R+diXlYf4D8OcJYDQNlVc08dAYZ57v n0it/f8FN0ke+IXFsPAh7skdwUxGBuj9p3qw+8UMCA1metYwX8Q3wK0xukAfAaWv D/oGK3yUInOzFJVf+dt0ps21GwTUKqlZPHl5rU34X4f++n/J24pvYmdBOzlLqm10 J3VhnQ== Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e3nv29ada-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 12 May 2026 03:44:59 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2ba15e384c7so29470685ad.3 for ; Mon, 11 May 2026 20:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778557498; x=1779162298; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8LcGKsBWnDz5XCQZOm9zW7vWC0qVrq2TSrnS/NYguLM=; b=W6wQE5HY7COZ9U7nNwPxrpQEjkButY0MzBWiJgKiI3MpxkvfiwgEoNvHG3VfFbJXkN d+DoPFus+Lk6WAdx0AXhu7XY/64qXBcwajCX6MbEreM0PdZa/23FHcYX+4MKU1to7Szn x8sJfGAbRwHQeMVpyETtwKYcIEccEgdatZEuhhlMLJGB6MHHZQUOEWppquLWnsj5BIfg 8wvGkwHI+iRSiOF7ehHLxKhkYTIKIErzCHAPLtGqDv3TYLA3+yRnTf5/D81lj6VH6INS DoaEquyb4l6flpOefIs0QY3i0nd0TbxInLcRphWrk48dygGGZJwYr57L3Ed9XiY9CdW6 xUrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778557498; x=1779162298; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8LcGKsBWnDz5XCQZOm9zW7vWC0qVrq2TSrnS/NYguLM=; b=L4pipeqFjyTKYzQMymq17RL7lUZkmvXzsUIci5/uDApwVu4zQpfy8R5AFZcGPm4YjB waF1X4KZ+8he1o16BDK8D8HUiqFT2Q725f5TJuqXQBGyFvZLDWXiJEK/hEdJi3ejcVO8 BGn22Ugi0APqypWbn+6m4gJRj9Nh75X1tQMLa8vium7uPudTvUSqRFSV7+B9WsNxnMzH Q/z4Z/diOgrpEPIkzcHF4m+6KS5NSbVAs1VUj7vh2DSpVmVgJuY/dEPbca4hm7ry+/ev AJKzKw0T9kirH+mRuTTL8YW4djswhpolyk5LLK82Hy7GaUovZin1swFK7u81gmJngyeK fQ9g== X-Forwarded-Encrypted: i=1; AFNElJ/5rj/SxfG8E5huPI7xf9Yb+ifrhsF7gzSPiIYa0NpQzrenmSp/xBoDm4Asa/Ov1T1frdNEGZV71206ZSc=@vger.kernel.org X-Gm-Message-State: AOJu0YxzLjnpW4tYNaGkaU69I1zvEt6emaMgGrJ3mRxKIS2TPSDW4BkP fSMHrkU8kRwfDHbDUZrP7tLyCcJUnvXL9DZO86rQd84UgQSLNmlC70Jr5FsNKnnMNSieJyzgOXY UYdnUdvySP5Xq48FyNX8n90qLIxGZKJU+s7/bgKvJQTpBxD0EDmdKKar9JSrYQWkxHg4= X-Gm-Gg: Acq92OF98BBEYXfwD4Q75OtsV11LTvaLwBt50WCIkLQo81IlGuRINC6UuypncysUzm/ lpM4/GEvtMzEniOb+req+bUvrjeEP7yc4FE/wBPtUvS+w1Ys3CX1IS3OmmzGceSs4CpQIUPHVxX 71S+0NO1q3ueZsdDmM6Q0dni5FNoRK4bW/a5b0oVjCw9lYi01aM8vbqfPxbPegH36K8azl5qPJn K09etjxLSJL2AxYLhTO++VA7szDdHYYLQd5b3xCbPGjFnofUnGmoulDuz/URj2QwtXLqtrVbE2g zoa2oYWuy7x7QBrywNoiwq8ALZWhH9tK/ymxxMkqsRLqAjsI6XhDv5dUPdcmGcLozhwa0oYntwO vo3dlY+f/AHDNlQ2KFbfXWBV/PRlNgtUcuwtxIT4mkhcgR4bmL8jlE9MieZjHA8+kjaMoBVPgUh MWoaDHwIKM2yNsB/oRQQA= X-Received: by 2002:a17:903:3c6d:b0:2bc:b80f:6782 with SMTP id d9443c01a7336-2bd0110f01dmr15833515ad.11.1778557498099; Mon, 11 May 2026 20:44:58 -0700 (PDT) X-Received: by 2002:a17:903:3c6d:b0:2bc:b80f:6782 with SMTP id d9443c01a7336-2bd0110f01dmr15833115ad.11.1778557497569; Mon, 11 May 2026 20:44:57 -0700 (PDT) Received: from [10.133.33.178] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2baf1e847d0sm114977145ad.62.2026.05.11.20.44.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 May 2026 20:44:57 -0700 (PDT) Message-ID: Date: Tue, 12 May 2026 11:44:53 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4] wifi: ath11k: fix peer resolution on rx path when peer_id=0 To: Praneesh P , Matthew Leach , Jeff Johnson Cc: Rameshkumar Sundaram , linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com References: <20260424-ath11k-null-peerid-workaround-v4-1-252b224d3cf6@collabora.com> <530a9e0b-ae5e-48ae-a2c8-73152e2dd6df@oss.qualcomm.com> From: Baochen Qiang Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: R2_Vt2FH4vgb4QSOT6czosnGCI9YaOuX X-Authority-Analysis: v=2.4 cv=CeM4Irrl c=1 sm=1 tr=0 ts=6a02a23b cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=Vmrqkdg0PNoj9Cys2bsA:9 a=QEXdDO2ut3YA:10 a=GvdueXVYPmCkWapjIL-Q:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTEyMDAzMSBTYWx0ZWRfX1SsMnYY3cYET yH/4cvkudBJiEP7HWR+ZbcG8jqX4fFmR0ysskxpSdQuD5yGA73Agsa/iZ1bKrHvd96T5dDTicGG vpdVCLvtCQMvDrqqJbC2hcK9/LfoOirA1dyCzPlp5LQBzlG/miXUOM67B1NvgMspWZHSnqZXwDb yosWk2EiB9K+tYcZj20zoZZICjv95bQP/iI1bSlzqPFvvVP2tnWz8o/FeIYD74BX2xx+wyQCfx+ onPZH40rbMQ5X90BVKC7qKvmY09Oq60itTtIZ6NXobcPWQoO1IE06cNbYzbcWYc/Yc/fZzuacfU HuBeMHEfHAv8oLSiyjYMjb9cvu2YB1NdBgbWtHPt4fOgM56m954xgI70VV67lML5uuPQV+Xa1U4 s8BdkT4G6wcYK0xJ2KyGBGKrNSiqPkJ6kbrbiUoWBFYReDUyWhBgjKjNCMyU40NytXt+P6eEOMg OnQqI4B4O52iPejxc/Q== X-Proofpoint-GUID: R2_Vt2FH4vgb4QSOT6czosnGCI9YaOuX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-11_05,2026-05-08_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 phishscore=0 suspectscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605050000 definitions=main-2605120031 On 4/29/2026 6:47 PM, Praneesh P wrote: > > On 4/29/2026 1:06 PM, Baochen Qiang wrote: >> >> On 4/24/2026 5:50 PM, Matthew Leach wrote: >>> It has been observed that on certain chipsets a peer can be assigned >>> peer_id=0. For reception of non-aggregated MPDUs this is fine as >>> ath11k_dp_rx_h_find_peer() has a fallback case where it locates the peer >>> based upon the source MAC address. On an aggregated link, the mpdu_start >>> header is only populated by hardware on the first sub-MSDU. This causes >>> the peer resolution to be skipped for the subsequent MSDUs and the >>> encryption type of these frames to be set to an incorrect value, >>> resulting in these MSDUs being dropped by ieee80211. >>> >>> ath11k_pci 0000:03:00.0: data rx skb 000000002f4b704d len 1534 peer xx:xx:xx:xx:xx:xx 0 >>> ucast sn 3063 he160 rate_idx 9 vht_nss 2 freq 5240 band 1 flag 0x40d1a fcs-err 0 mic- >>> err 0 amsdu-more 0 peer_id 0 first_msdu 1 last_msdu 0 >>> ath11k_pci 0000:03:00.0: data rx skb 0000000038acd580 len 1534 peer (null) 0 ucast sn >>> 3063 he160 rate_idx 9 vht_nss 2 freq 5240 band 1 flag 0x40d00 fcs-err 0 mic-err 0 >>> amsdu-more 0 peer_id 0 first_msdu 0 last_msdu 1 >>> >>> Remove the null peer_id checks in ath11k_dp_rx_h_find_peer() and >>> ath11k_hal_rx_parse_mon_status_tlv(), allowing peers with an assigned ID >>> of 0 to be resolved. >>> >>> Fixes: 2167fa606c0f ("ath11k: Add support for RX decapsulation offload") >>> Tested-on: QCA2066 hw2.1 PCI WLAN.HSP.1.1-03926.13-QCAHSPSWPL_V2_SILICONZ_CE-2.52297.9 >> Tested-on: is not an official tag but is ath driver specific, so generally it is put above >> all official tags: >> >> Tested-on: ... >> >> Fixes: ... >> s-o-b: ... >> >> But since this is trivial I think Jeff can make the change when he merges it, so no need >> to respin just for it. > For QCN9074, IPQ8074, IPQ5018 and IPQ6018, Peer_id 0 is not a expected value. Like ath12k, > it is better to handle it through hw_params. ath12k takes the same way as used in this patch: https://lore.kernel.org/all/20260512025732.1297849-1-hangtian.zhu@oss.qualcomm.com/