From nobody Wed Oct 8 23:03:33 2025 Received: from outbound.pv.icloud.com (p-west1-cluster2-host11-snip4-1.eps.apple.com [57.103.64.152]) (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 BC4B92459F1 for ; Mon, 23 Jun 2025 12:31:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=57.103.64.152 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750681901; cv=none; b=Tdy03OJKsPhHOJdg1FVLvIHnIRW4pVL04r3w5U2MS9Zh78y5M4kGE1ZFgMGSuBGpFS0uQAID3USqJEVDZQbdbX+55RdICf7JGZhiNv6WAkA1w2tRzk9AVTv0gYohAbxAKxryd6FARLSSOBKZi2wnEY93OJOmzbdQgZUFtkoF7jM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750681901; c=relaxed/simple; bh=fkwjlgmRRs46qzcBjCAqAA9El9cLBiccykLVz3LbkvI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AP6hVxG/CO38zjlby0TPem9n4Use8mxMIang0xRtUkC7s6++SyO6Z58aiY8vIjJReLmTra646zi2PjjLvlsGFsPjrW93uL8QMx+M7ndRmFB9xa58h4ubyJhG236JEY3aPQDaI2UU6s3/5xwzHPvs1zfBffshrM4VB37mMVz6+a0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com; spf=pass smtp.mailfrom=icloud.com; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b=vzHQd/nt; arc=none smtp.client-ip=57.103.64.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icloud.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b="vzHQd/nt" Received: from outbound.pv.icloud.com (unknown [127.0.0.2]) by outbound.pv.icloud.com (Postfix) with ESMTPS id 0231C180377A; Mon, 23 Jun 2025 12:31:35 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=NHgxlTzvgc5QNV7cJrvxK2AUxsXCg2hdL0DYremg4GU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:x-icloud-hme; b=vzHQd/ntnLd5RGHoLoDaLBAFMHWMs5uqVmwQWP2VWMObvDJj7g6i5RO99L7djyucQu1u9Hhk701mwNrorg6eYtWmKNuo7S0JekuK8+m9EcQ9thbVfsnWbQXRAKEnQWAA+KSKXt84GrPOrqTS8TVmVN6JsKdwt0fVpL0kTpn98xo18yo3oS+IuwZIWv48Y5GDy4fZI0nehbg6FVT5Gb6/eRrjTuzfCFCUFIjbb0mpvjJ30URQQhnhFquRaQ85mgminXabHb0R1s7fmQwZHVvcnPTrxIiS1xld0kpoXyyew5FppAHBOSLTFBgcAW6TnO+hyKnHScDfId0cc3yX83y1YQ== Received: from [192.168.1.26] (pv-asmtp-me-k8s.p00.prod.me.com [17.56.9.36]) by outbound.pv.icloud.com (Postfix) with ESMTPSA id 69D5318000C0; Mon, 23 Jun 2025 12:31:33 +0000 (UTC) From: Zijun Hu Date: Mon, 23 Jun 2025 20:31:16 +0800 Subject: [PATCH 1/4] Bluetooth: hci_sock: Reset cookie to zero in hci_sock_free_cookie() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250623-bt_cleanup-v1-1-5d3d171e3822@oss.qualcomm.com> References: <20250623-bt_cleanup-v1-0-5d3d171e3822@oss.qualcomm.com> In-Reply-To: <20250623-bt_cleanup-v1-0-5d3d171e3822@oss.qualcomm.com> To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: Zijun Hu , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Zijun Hu X-Mailer: b4 0.14.2 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjIzMDA3NSBTYWx0ZWRfXx04nththdni4 oDtmNzzKPh7cqGrgzbxUUsP7DAvXAajI3fS8bmYuzkNiYccD5cy6J5CtSaiMf++3a+pCC0TMi0w WkhWZLHaDdlnMdlmkNQkjX4MQDgVg/Bcyd2zsMNzOGrYbZwSxLdvCYRRn7ZXVWjPcGyb0i+GT3Z TLqRQVhrFwEWg6hWVrvaHKMPrqSV++rhBjKMcT1e4dZ5XFjbj8TZDXqAyup0mBut8vOFgE1GYGQ JcKqWCELsrDPqnS4xzH3uL4J8iD5HOQTluqUauY65pZlOrvbAPwI1dqnBznxSp63Y6D64N8vw= X-Proofpoint-ORIG-GUID: m6KzkSG0Oj9PaEL_VXDLV5ePqEXbUK9x X-Proofpoint-GUID: m6KzkSG0Oj9PaEL_VXDLV5ePqEXbUK9x X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-23_03,2025-06-23_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 spamscore=0 mlxscore=0 clxscore=1015 mlxlogscore=999 phishscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2506060001 definitions=main-2506230075 From: Zijun Hu Reset cookie value to 0 instead of 0xffffffff in hci_sock_free_cookie() since: 0 : means cookie has not been assigned yet 0xffffffff: means cookie assignment failure Also fix generating cookie failure with usage shown below: hci_sock_gen_cookie(sk) // generate cookie hci_sock_free_cookie(sk) // free cookie hci_sock_gen_cookie(sk) // Can't generate cookie any more Signed-off-by: Zijun Hu --- net/bluetooth/hci_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c index 428ee5c7de7ea32fea08a2ebcf57e30dee59e3fa..fc866759910d95f40f159cfd637= 10f4c5e519dfd 100644 --- a/net/bluetooth/hci_sock.c +++ b/net/bluetooth/hci_sock.c @@ -118,7 +118,7 @@ static void hci_sock_free_cookie(struct sock *sk) int id =3D hci_pi(sk)->cookie; =20 if (id) { - hci_pi(sk)->cookie =3D 0xffffffff; + hci_pi(sk)->cookie =3D 0; ida_free(&sock_cookie_ida, id); } } --=20 2.34.1 From nobody Wed Oct 8 23:03:33 2025 Received: from outbound.pv.icloud.com (p-west1-cluster2-host1-snip4-3.eps.apple.com [57.103.64.174]) (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 AEF2C24A067 for ; Mon, 23 Jun 2025 12:31:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=57.103.64.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750681905; cv=none; b=h7AoE1GlO9dw/upcWwWsmoEZfXtsLLjeEZpnQWjeT4tvRUxz8Y6wh+lUTig5UDHkqy5LcIUeHB1GHmMO5y0Xebna5bIVIcdpggtaeu797imsmiXufImhM24xMq2yDyZUCm22mJQySsrAshMO+i/JwpGDkzz9bUmkB1WlshSkDQQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750681905; c=relaxed/simple; bh=lSYzmt2e/7sb/9/P+7v+9g2YrTs5nehaODUIs4dbQms=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=D3Va/V/DztZ/nOVyi6TtwarhdRFblnVJW44MHkXiQx518l4KK+CeKPKYdKZCuUrWBx6Vg9Sregpf/Ln/Eq1yYbzDzjdlfgxRLrauNIKlf5n1cWvPkglZ70yaB1G02VCKH8B8EdPSQ0BWRV3H0lauBge1cQJAQRCywLYKWK5TLqs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com; spf=pass smtp.mailfrom=icloud.com; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b=gKxUeb7v; arc=none smtp.client-ip=57.103.64.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icloud.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b="gKxUeb7v" Received: from outbound.pv.icloud.com (unknown [127.0.0.2]) by outbound.pv.icloud.com (Postfix) with ESMTPS id F16EC180018F; Mon, 23 Jun 2025 12:31:38 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=mBETXbdc3NL5vO8AwaqSutoRmMvp/eieMDamGyhkfPE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:x-icloud-hme; b=gKxUeb7vm0f1EkbOhG3asREHEMYkIdhl+w/Pn0k9bVzmbyD2xC5Vr87H8UTlXosGCgEG7jUxvi0b9n24n0TqMS+d8MGyZus/nggqUGRFjx0VP4CfN5epxoavMlEx2X9FV28tMsQJFKaidXusbkMQElJ4ev/s5nPtJB7q6agD8kcF0AFD9eoocWrBKCyMR9dROfHyOjY6EunB7xTM/Na6PIjfZbJATFEeEYp2M7PIHQQAE8oS19+R3EWHR9NZul3mbbYSEqco/PSpCh0jMOpJKPybzqvB/Dkg67RLt4v7yPa/GhgJ3oSm2aZ3udNMUo6g2Md9MoHQtktjo0ODlFmp6A== Received: from [192.168.1.26] (pv-asmtp-me-k8s.p00.prod.me.com [17.56.9.36]) by outbound.pv.icloud.com (Postfix) with ESMTPSA id 739211800EC9; Mon, 23 Jun 2025 12:31:35 +0000 (UTC) From: Zijun Hu Date: Mon, 23 Jun 2025 20:31:17 +0800 Subject: [PATCH 2/4] Bluetooth: hci_sync: Use bt_dev_err() to log error message in hci_update_event_filter_sync() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250623-bt_cleanup-v1-2-5d3d171e3822@oss.qualcomm.com> References: <20250623-bt_cleanup-v1-0-5d3d171e3822@oss.qualcomm.com> In-Reply-To: <20250623-bt_cleanup-v1-0-5d3d171e3822@oss.qualcomm.com> To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: Zijun Hu , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Zijun Hu X-Mailer: b4 0.14.2 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjIzMDA3NSBTYWx0ZWRfX2dWKz4PPiEO7 q0RTvO6pviQrBqumA0CJojuBX8ifhdNnBFzdPLjp9IyweNfqQS5+9hE6SgUq4Utte6hEdqgreRg ETs3JvCVyhdEK4hgyzC8lPgq5lzGKnKQqQcRYwkLoqF2L7IIptShR19bDu7pQsIL1j8nXb/8ofF MD9oDM9NrzB7e53qc3ubH9HbCG/Kf1J8Jt4ZnDfdglB8Vu/ctwPb/63HiF/tTqvqgfrR8waabrh EETGzaLhrpgE/gkuyhLSR20fnWWMfmWxCzccuVJxdBoYcPA8uZc4PepkIJUK8vGYr7JaRkmuk= X-Proofpoint-GUID: MWi7XUJp5w6K0sA3MrXFrAezW9VDznG6 X-Proofpoint-ORIG-GUID: MWi7XUJp5w6K0sA3MrXFrAezW9VDznG6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-23_03,2025-06-23_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 mlxscore=0 spamscore=0 malwarescore=0 suspectscore=0 adultscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2506060001 definitions=main-2506230075 From: Zijun Hu Use bt_dev_err() instead of bt_dev_dbg() to log error message in hci_update_event_filter_sync(). Signed-off-by: Zijun Hu --- net/bluetooth/hci_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c index 6687f2a4d1eb44c154f471ed0c4cad7e8d437c88..9288a2ff5476fba04729799e7b7= d8b4d43087e6c 100644 --- a/net/bluetooth/hci_sync.c +++ b/net/bluetooth/hci_sync.c @@ -6073,7 +6073,7 @@ static int hci_update_event_filter_sync(struct hci_de= v *hdev) &b->bdaddr, HCI_CONN_SETUP_AUTO_ON); if (err) - bt_dev_dbg(hdev, "Failed to set event filter for %pMR", + bt_dev_err(hdev, "Failed to set event filter for %pMR", &b->bdaddr); else scan =3D SCAN_PAGE; --=20 2.34.1 From nobody Wed Oct 8 23:03:33 2025 Received: from outbound.pv.icloud.com (p-west1-cluster2-host12-snip4-10.eps.apple.com [57.103.64.171]) (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 8534524A049 for ; Mon, 23 Jun 2025 12:31:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=57.103.64.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750681904; cv=none; b=thrwtMOontQiMq4uDFrHeal87NNBoHmW2qMu3bYLFs80Y+9osvQJDx9731p4E88ZuKbyZtiUeO8SJEWfbcuAX6GhT3mZvB71pCNXiCOzx3GpLbNmQeNlIsPQxnFMAH97aTjW3etpKOmQct5eRArbXdXDhaVeSu/PqC6Zgtek32c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750681904; c=relaxed/simple; bh=J1RM/naRig61JPIyS5A7i1IZVZPPaLZeQxHMAzk1/2M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DUlkyZvbue/cJ8U1c+cqC75aWWuIJimo8jR7dOLBYZwETkTE2t40T/oDsjwV7yJEgQnEOtJ1mAAyos3a2AqiTunPHNh9rL+X8/eyIVLKmrn5mbzWJDjtRtad7P4xYr35W9Zy8CAZRn6TFLzDyjAlWFyxfIe5UoaPP++EDghqpFU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com; spf=pass smtp.mailfrom=icloud.com; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b=FJyirCYl; arc=none smtp.client-ip=57.103.64.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icloud.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b="FJyirCYl" Received: from outbound.pv.icloud.com (unknown [127.0.0.2]) by outbound.pv.icloud.com (Postfix) with ESMTPS id 2038C18001C4; Mon, 23 Jun 2025 12:31:39 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=+bOMZxGNcbHMaMNIw5IRQMdjJTzHAuHb31YFz+gbxtU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:x-icloud-hme; b=FJyirCYl7eJmDiSo7j96q2fxsSxPqbmKj3bWcBIapxYbGy6ASf9zufgqe0abLtyCnynVyUBBYsq/NmRaykL5mTW8LIeZ2Y5wEqqeA18lmPlaFGw+Liebfm10E19mup5aSe/2GN91tj/7xdiwwu7Pg4o6AyK/3cKuSdaoqir5nybUBby2rBjHrT+QRwBLHH5bwKQqvWh3gguphqfs2FX3qDmK5GYC31/325jkqpyJlgLvggCzWfxS2mjp5TqzkkbY8suguL1jE9eh79nNtPdtEzBkxkmIkPMf4/iM5bRMYb1/Z66XtZbuAUyEqvbFDA+OiVvinbr6bYeIturnE536Og== Received: from [192.168.1.26] (pv-asmtp-me-k8s.p00.prod.me.com [17.56.9.36]) by outbound.pv.icloud.com (Postfix) with ESMTPSA id 7DD641803759; Mon, 23 Jun 2025 12:31:37 +0000 (UTC) From: Zijun Hu Date: Mon, 23 Jun 2025 20:31:18 +0800 Subject: [PATCH 3/4] Bluetooth: hci_core: Eliminate an unnecessary goto label in hci_find_irk_by_addr() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250623-bt_cleanup-v1-3-5d3d171e3822@oss.qualcomm.com> References: <20250623-bt_cleanup-v1-0-5d3d171e3822@oss.qualcomm.com> In-Reply-To: <20250623-bt_cleanup-v1-0-5d3d171e3822@oss.qualcomm.com> To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: Zijun Hu , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Zijun Hu X-Mailer: b4 0.14.2 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjIzMDA3NSBTYWx0ZWRfX12VavILxTGeQ qS7OesVf8ESm/76ljFGRQyGAknVyQCsMB/KMCJ67L7iFM8zT8B3l6nccQFj3NoEsbfWyDVc9DeW E46dQBbXe6qHM0ht2Q0FnANQPXCf8xzeucdyk5fFz6qdKqDD65n3ijtXOVbfJ6BRNHXYEpAAS3G R+AmDLDqeNAQ55xtNN/ILcdr6rV2IeFZi7zDRVvmvAUaz5xTyQpUpkE6cBZMi7zuS+pHH9nufUi dix7Z0WkZxhgkfPS2kKXP3qoss1NJ2U8HhZtH5nX+uVgO/njbXMQuxcuPFMZyJQjjAyshwM0Y= X-Proofpoint-ORIG-GUID: 0FUP7SD9JBMuQuXhpKs9AYjI_0G0L3Po X-Proofpoint-GUID: 0FUP7SD9JBMuQuXhpKs9AYjI_0G0L3Po X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-23_03,2025-06-23_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 spamscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 clxscore=1015 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2506060001 definitions=main-2506230075 From: Zijun Hu Eliminate an unnecessary goto label by using break instead of goto to exit the loop in hci_find_irk_by_addr(). Signed-off-by: Zijun Hu --- net/bluetooth/hci_core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index ce1d8c997a31529996ad98f22ec0997ed3ac9b36..9af4d7345e4df1d715fdab7427a= 700007303f65e 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -1256,12 +1256,10 @@ struct smp_irk *hci_find_irk_by_addr(struct hci_dev= *hdev, bdaddr_t *bdaddr, if (addr_type =3D=3D irk->addr_type && bacmp(bdaddr, &irk->bdaddr) =3D=3D 0) { irk_to_return =3D irk; - goto done; + break; } } =20 -done: - if (irk_to_return && hci_is_blocked_key(hdev, HCI_BLOCKED_KEY_TYPE_IRK, irk_to_return->val)) { bt_dev_warn_ratelimited(hdev, "Identity key blocked for %pMR", --=20 2.34.1 From nobody Wed Oct 8 23:03:33 2025 Received: from outbound.pv.icloud.com (p-west1-cluster2-host1-snip4-1.eps.apple.com [57.103.64.172]) (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 316DF24DD08 for ; Mon, 23 Jun 2025 12:31:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=57.103.64.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750681908; cv=none; b=UGjZKYm5g4SN+/qG6xiblSWCaIqsv1e1nvQfUnaG+87WYygjKKGvgKKcgq2bW90VQnB5BPrLNK3JeK9f7FsxbPJ/wl8T83CXih+r+euh9R/kQBo3Xy9L7sweM7H/U4VFSes9OS9bg/AK/o6htOP32auU/CdQkceaRgD0QuaN/QE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750681908; c=relaxed/simple; bh=u27hfvZPNVdrOyO84MBRvJr2HBDqcDvzO+IV9vUv1XA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nyWMAiYDi2MWBmhjP5U9m40Gvc6Qk/ZsrlEtZZe9L9rrUno1u9wC/pJ5FPgKcJ8GyHEFw9/32M3Hv34WXGSHYBV/82nxiObpbfVbpA9wnmJKZ6vgZV3++4bIQvqigHcENKLxsBu8sPfi7YodczFCjedXk1iSsbyYD7oOEFBgf9I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com; spf=pass smtp.mailfrom=icloud.com; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b=AxIixocP; arc=none smtp.client-ip=57.103.64.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icloud.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b="AxIixocP" Received: from outbound.pv.icloud.com (unknown [127.0.0.2]) by outbound.pv.icloud.com (Postfix) with ESMTPS id 877781800ED4; Mon, 23 Jun 2025 12:31:42 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=+kkJTNxFq4wgb7WDvA6T6uZaSbwuO6NcGFlwCeIcFT4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:x-icloud-hme; b=AxIixocPYrARiA45SthyyA+hinZmhlPhnffxqS0OeWP/CPCnmyFen7CiEnMvGXD88ApMPgLUE8CwRCHlMSMKb66aONYjpVhZ5X2rZXZjnSXuRTDSIt75/A2xpvnhJd5FaO9N2B3mxzwpwcWC745dt6Rf60v3btEZHw3487gmSFVDwn/uoUu7r7HnL5yQazeR1JUcYVpS93VWr0e9swBDjlOes5s6G6BQ1ijHJ6TqsKoRBeHBPcfrDrHZDuxcUmMhT0McEDmqC+SYqZYH1fZQhqhtNWcWbgofUqNPoISyllHVbvqs8OQHtQnjeekSdofPZlttCrX+Qhf1+aRhDE+wQw== Received: from [192.168.1.26] (pv-asmtp-me-k8s.p00.prod.me.com [17.56.9.36]) by outbound.pv.icloud.com (Postfix) with ESMTPSA id 8D8541803774; Mon, 23 Jun 2025 12:31:39 +0000 (UTC) From: Zijun Hu Date: Mon, 23 Jun 2025 20:31:19 +0800 Subject: [PATCH 4/4] Bluetooth: hci_event: Correct comment about HCI_EV_EXTENDED_INQUIRY_RESULT Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250623-bt_cleanup-v1-4-5d3d171e3822@oss.qualcomm.com> References: <20250623-bt_cleanup-v1-0-5d3d171e3822@oss.qualcomm.com> In-Reply-To: <20250623-bt_cleanup-v1-0-5d3d171e3822@oss.qualcomm.com> To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: Zijun Hu , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Zijun Hu X-Mailer: b4 0.14.2 X-Proofpoint-ORIG-GUID: QuZYD2IY1lnqgPnITdud7qNjCE9tSjJ6 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjIzMDA3NSBTYWx0ZWRfX+EJoweXz+YDT Nw2yR1SfV79NFDIfxFxehD2DPg/DhW5rLVnVF76+gM388cHLHMS5kS4tK8rPGQJAGAXMFLIUMHI QWhK5YclZWBuHJn0RiDaJlEzePkI48O3zH5vmqv7InDSB0AJL0LiEiv10nETbMenHYmEwR5COx2 XiT7aAFvpQ455Loe28wn3DRM+0Cy8I77OHVbO0XHpLoVLVVvM1NJoliMMrO7fXGOPTLaN8XhupI DSISwmcuYWZdP4onabYMk0pFhSBWiKH5kGF1VCRuzPs+3Ak1wU0YdQwwi/rRGfFtqv1+BWtpU= X-Proofpoint-GUID: QuZYD2IY1lnqgPnITdud7qNjCE9tSjJ6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-23_03,2025-06-23_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 suspectscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 adultscore=0 spamscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2506060001 definitions=main-2506230075 From: Zijun Hu HCI_EV_EXTENDED_INQUIRY_RESULT's comment wrongly uses 0x2d as its event code. Use right 0x2f instead. Signed-off-by: Zijun Hu --- net/bluetooth/hci_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 66052d6aaa1d503cfcd542656d0ffbc5824e239f..c4b87bfb4c1a76cd865290ba2bb= ce7901a6c26ef 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -7433,7 +7433,7 @@ static const struct hci_ev { /* [0x2c =3D HCI_EV_SYNC_CONN_COMPLETE] */ HCI_EV(HCI_EV_SYNC_CONN_COMPLETE, hci_sync_conn_complete_evt, sizeof(struct hci_ev_sync_conn_complete)), - /* [0x2d =3D HCI_EV_EXTENDED_INQUIRY_RESULT] */ + /* [0x2f =3D HCI_EV_EXTENDED_INQUIRY_RESULT] */ HCI_EV_VL(HCI_EV_EXTENDED_INQUIRY_RESULT, hci_extended_inquiry_result_evt, sizeof(struct hci_ev_ext_inquiry_result), HCI_MAX_EVENT_SIZE), --=20 2.34.1