Bluetooth: btintel: Simplify btintel_classify_pkt_type() by hci_acl_handle()

Simplify btintel_classify_pkt_type() by using hci_acl_handle() instead of:

__u16 handle = __le16_to_cpu(hci_acl_hdr(skb)->handle);
... hci_handle(handle) ...

Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
Zijun Hu
2026-07-25 01:54:47 -07:00
committed by Luiz Augusto von Dentz
parent 16ca59d36b
commit 6e53a37acd

View File

@@ -2745,9 +2745,7 @@ static u8 btintel_classify_pkt_type(struct hci_dev *hdev, struct sk_buff *skb)
* based on their connection handle value range.
*/
if (iso_capable(hdev) && hci_skb_pkt_type(skb) == HCI_ACLDATA_PKT) {
__u16 handle = __le16_to_cpu(hci_acl_hdr(skb)->handle);
if (hci_handle(handle) >= BTINTEL_ISODATA_HANDLE_BASE)
if (hci_acl_handle(skb) >= BTINTEL_ISODATA_HANDLE_BASE)
return HCI_ISODATA_PKT;
}