Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp249014lqt; Thu, 6 Jun 2024 02:24:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdZ46SyHajiL5P65SzW3LSgRly4d8xWMgrWBM5UY1TLThn/7Au+A3BrA3fEjCfC8ChSXQmeBSr9kbksfT7VglVNmXyQ1cJWeTEFMn/Aw== X-Google-Smtp-Source: AGHT+IFLfsFe+7SyFJvVS9HnVAXb4isctD01/T14UUrzuritPs05NSJeMAwKFsDOAkeDPBJnbvZc X-Received: by 2002:a50:9fa3:0:b0:57a:1aa8:b4ae with SMTP id 4fb4d7f45d1cf-57a8b696d15mr4923938a12.3.1717665841473; Thu, 06 Jun 2024 02:24:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717665841; cv=pass; d=google.com; s=arc-20160816; b=cQm0ZaUAVuel5pucNLXTbBO3few0jm+uxwRvPBW9aopxliEU9NIk+7liP1mIiBkJg2 DeZXH0NKfQ/S2rP/HQ4ak757EIaTJEIDS4j/PUY4w/pi9aoJmTjl1kV6isIxbyvH/rdN GMmjw7HDWK+2MID4vFHkuwz0Y1l7p4jubfi1bjKYI0Zjvu9jLG4miZj01Eia+fj+Afd3 u7hsZhX4q2m0vzRibnIBDEdi+J6ViLoOCMmxbK8DaAMoG9RPN5y0K91t8Um/89M7dYlc A1mtSsax2D64e5xu8YtFyYfj7fRqOjUKEws2XAbaGKnsjE3fmKm96xLFA5bBFU1voJH0 xItA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MRbM1go2u6MZUEVsoScl8wXxNgQ/01QqJmmjheGQRzE=; fh=hCUCV0br0LS2gL0tIN+7VEl76HGBTws3+qgN3MgZyy8=; b=gEwJwMxHTHUIlBsnOT7MEe84OQdO/HKR1lhN7vDRwLRKtiagLFxuvndW72c5/3yQis a0eG+hdkkSOGBien0mRI4e6znHdl/uLbxMIt5TQWBHufLPwA39mrXm5TWQx7suS8QKY+ MW2bMiRJt2Pcku5hvYrxg6LBY5KBXeRwgBAZDzTLJULxNEkLTpyVRGckJJ9IL6j14dtP To9rHjbJPzrcPOgVwqyUJfbt1RBMVyVmsif4DZG8syXO8XJr+6yZvo9DJzjvh/NCInGJ jbb5GcQZfzsPX8O7xA8zqGMCCIDyNHlBeQ1QWpZ0zG2HSuE1pldNaNMTtd4BXcmA/L0a o8cw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pbSgjZcO; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-bluetooth+bounces-5153-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5153-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae25f2b9si471194a12.488.2024.06.06.02.24.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:24:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-5153-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pbSgjZcO; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-bluetooth+bounces-5153-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5153-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 26FDA1F21770 for ; Thu, 6 Jun 2024 09:24:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74ECF13E05A; Thu, 6 Jun 2024 09:23:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="pbSgjZcO" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 695A213AA31; Thu, 6 Jun 2024 09:23:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717665831; cv=none; b=L5gGTqJwkj+qs4SIwrDWILXS2KLIBBAKTehSiHFr+EJcBCX4sMC4il6fTv7SvLbT6j+is8DS0/WLuY2nSXv+4DAEpUkZoufPVZyMpQGNHk/rYoJS5vQHX07D2/EFytuy4wOUofdeVnpDGZl5vdqeIYoLWG6sImM7qggEHSBcWAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717665831; c=relaxed/simple; bh=Hd6WVWO+3k2N6W88Frd2llpJ37EzLkQNE+lWirexqIQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IWEnDOLkr23HJ5SjPDpF6gtQC1rze0ac2hIgq9R00VzgQdi2zeMgNwav7vA/o5RwxEUCe7D7RiCUD+PPpCIoIPc3izoHYTxGmmYaF1ODZXJBvFFj2cRUSGI8sFJfZfTIivff031PbtaebVkf0uoz75dj/nW2RHeCk9egX/Avnvo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=pbSgjZcO; arc=none smtp.client-ip=60.244.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: 791a627823e611efa54bbfbb386b949c-20240606 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=MRbM1go2u6MZUEVsoScl8wXxNgQ/01QqJmmjheGQRzE=; b=pbSgjZcOdZm3iM1utyS0rRQLQ3QYX0V/CftowuGNFGfiqoQGGI+Ea/UISEp2+4j/elU6XGSGuHo75dpTMGez23c6e/st2lCqoFiKuXGvsMr+BnbQB31bZfCoIC2h6xYN4KctVPu9pyN9MHzti6kNa1E4sNF6pHCB33mwhRNTo+k=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.39,REQID:67013152-6117-40e2-9a35-cc28f485450e,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:393d96e,CLOUDID:71324744-4544-4d06-b2b2-d7e12813c598,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES :1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: 791a627823e611efa54bbfbb386b949c-20240606 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 131796664; Thu, 06 Jun 2024 17:23:45 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 6 Jun 2024 17:23:44 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 6 Jun 2024 17:23:44 +0800 From: Chris Lu To: Marcel Holtmann , Johan Hedberg , Luiz Von Dentz CC: Sean Wang , Deren Wu , Aaron Hou , Steve Lee , linux-bluetooth , linux-kernel , linux-mediatek , Chris Lu Subject: [PATCH v3 1/4] Bluetooth: net: add hci_iso_hdr function for iso data Date: Thu, 6 Jun 2024 17:23:37 +0800 Message-ID: <20240606092340.27675-2-chris.lu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240606092340.27675-1-chris.lu@mediatek.com> References: <20240606092340.27675-1-chris.lu@mediatek.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Add function hci_iso_hdr to get skb->data when packet type is ISO. Signed-off-by: Chris Lu Signed-off-by: Sean Wang --- include/net/bluetooth/hci.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index e372a88e8c3f..b9f8f91f6c7f 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -2898,6 +2898,11 @@ static inline struct hci_sco_hdr *hci_sco_hdr(const struct sk_buff *skb) return (struct hci_sco_hdr *) skb->data; } +static inline struct hci_iso_hdr *hci_iso_hdr(const struct sk_buff *skb) +{ + return (struct hci_iso_hdr *) skb->data; +} + /* Command opcode pack/unpack */ #define hci_opcode_pack(ogf, ocf) ((__u16) ((ocf & 0x03ff)|(ogf << 10))) #define hci_opcode_ogf(op) (op >> 10) -- 2.18.0