Message ID | 20240216-bluetooth-defines-v1-1-6c39aacc66a8@fairphone.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-68636-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp506949dyb; Fri, 16 Feb 2024 05:23:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhyRnWSA1FMDUscbmuMOwomgtTmtc8Bz2lyFxk6Dqd+vusUDL7F0HsPEBmdxGX5SuGuMdzvqp2jCPZ9ajN5k+jpvRaWg== X-Google-Smtp-Source: AGHT+IHYJ1BfUfmgbQUxPWqLAWDRgsBCc97SBa0K3vLrlxSA8orCMnDZmXLyzNxHEXv5GwfGTLcp X-Received: by 2002:a05:6808:200f:b0:3c1:4085:5773 with SMTP id q15-20020a056808200f00b003c140855773mr1559763oiw.5.1708089782518; Fri, 16 Feb 2024 05:23:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708089782; cv=pass; d=google.com; s=arc-20160816; b=FGzcuhZza4H10uWl5uErSu+ZahxafXStdHgHeu69lcH4GPtj4mYixfi9sXNeJH103a Jdm+5s7Vpmazak+0G1qzNaAUJksHV73r39j2MibnjqQfFHgv/76VRZHNrReG5p51cM66 t2aQfJjqcgbOicDkYddXhwoFs7Cl+aE2t+Vj+FsLWu/pfKpUrx2517gp1jkj7wfDAiFW /K7hZfGQQppcsE7/JdeMfUjcHtAYoQJD/nDgrYoKnnU8bB2ELgKhK8DMNnNR4NFwqYPM wJJ88oRQipkpFkxUryPV9GNnnk2ImT8G3aBLC2lOXDjlPYh1j466LXaIbonW3M7kNSoN DCEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=aFDoU4DI8sHTODaC/giqLy7tDcjeeFmno8f2AA/diI4=; fh=366i1dU8f1Fu3UuHpaQgI8gRLwemwM/TvzGyOSxcJRw=; b=yOMYXsR1L4hHRiNsp3u8k0C7So6aurcjK3mRAD0k7Ozm0nAznL+au7m4RCKY91dh8S 1CCOunPsal1HC8rwIijUzaxN61/SJlm8XuDpzNWm41F6wAjmJCRX6pZrtvAILhQGa/nJ bkaxKr6Fh32BMyYeI3d5Ferwld+aNdiESidXTj7096eT/KZB6Wj+0dYQREOA7v+kqdK7 qfCULBtjRtsHRLricIPwcELOhoINOnJZQx7ZrJLgN3oEnKc10T9mCUwixDOwip7Q474v 6WOH6+Rlf1SG+dcEHxwVZYrb2w+vjErUgKPX6HV/Ob1dMqlIR5AGZemoWivVNnJ1jMWb 2oNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=eHKPBkH2; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-68636-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68636-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s9-20020a0562140ca900b0068ee94fc0c0si3956297qvs.1.2024.02.16.05.23.02 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 05:23:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68636-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=eHKPBkH2; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-68636-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68636-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4401C1C2108A for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 13:23:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5994C12A175; Fri, 16 Feb 2024 13:22:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="eHKPBkH2" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDBA81B966 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 13:22:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708089764; cv=none; b=sE6P1OwQ+wT0F50+Mvvly9nyktLBlIvm7gyCs0kx6cjT9eiKH7VBOK8YEZ5cQP8O2CSICVIWjX3SdVUlBUou4AcOFMGCzyV/oHJE1jXne2iq3OAGPBRfreD2JtHpm0VUNwgHiMQicumwLOJHdrmrbM6cW2mycuEeikbAWvEFtXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708089764; c=relaxed/simple; bh=FsNmchVQuTTQMH/B9KKVO168bioDU6bYqSApofTtot0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=XYYGBDbopif4Cyg7E1K1VWPOP7uSXRYGbdRNt0nKehXpuzmfX25VzxG4SVGkklDWiKj9xlCKSuE1Mp9ahYQ5iutNi7yLmXD1rcmxZUmapg2bT0LduBZAj1iEfTEMuRyN7Vi5tbCREU0GHugxH5eFVVmn4KMWpBlVWvcW0W1KTyE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=eHKPBkH2; arc=none smtp.client-ip=209.85.218.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a3de25186fbso70706066b.0 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 05:22:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1708089761; x=1708694561; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=aFDoU4DI8sHTODaC/giqLy7tDcjeeFmno8f2AA/diI4=; b=eHKPBkH2tMIilq4kf2bVe+e/ZL9zguR1zfgq62EbyiN37NgFkoS/11M03mJw672bWS N+P9UTArMHbk1D44BdD/JHqriApONz5nIgW9qpKwOQYfz0AG/svStcyI5Cjrq2P13vwX cqjI2PyXoc/Xg72bkkJnbAWPa2Slh58QfB7dqNTWSJQqwIE6YorRYd6GLcsgf05bdsIm CsQLyUWenYGxwKiaNJXNpcT0rl2YNd2KmO/7YqDe6sWvKlBWegDJZC6hvyyP3mjv+OSX O51xxt5BCR06A6WIQdz8gQ5B7AZl3AXxZsaLBs7pmkiYiZWYy7heieT0AtKX3QrrIpxN Dnrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708089761; x=1708694561; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aFDoU4DI8sHTODaC/giqLy7tDcjeeFmno8f2AA/diI4=; b=tauOt41htKvLIZA2ZzE9FpxMGff8Zh/BtWg9BwzlPJL/Gu92XeELsJe7gWGpJkprmH zgvr9E1yfE33yO8lB3eg90FhCq06Dbb9vh7HWoQagOBpHc8d53kheRETQW477IyIcCuC u0pxHk6ClvINwwqZ3WpM4f6sqpaHBRaCUTfUBM5Fyrn2u7P5WHD+HkSviSvjGHEoD8DK T1/sBkau6xepCsRI8Rm/upJXoc6st1NGXrV6wmIFkEYPvRn0pOoyoIq4622ouK3OJemq rBXOrSQbQdVG0SiKJrjeVhUi6+bjWOuBkSY57c5/rWYf0+Vkc0wv8a0Tnrz9YHA0JAQO bZeQ== X-Forwarded-Encrypted: i=1; AJvYcCVOE4LrX43NNm5W6VvWfvp/0tieRP00AN+5JSk//u9JzdOs1Y6L83OiOkJGjprAFav+iSURK02Cw4I3dISoAsOpPZkJK48zoplPGCK/ X-Gm-Message-State: AOJu0Yzn7ZQigi08TuThZKfB1btjn+//DONkd/BsUmOrr3clDJBozRYG +e0w+hBuH3VXjn9cfEef+Fxmz3/RCssj2zOoi7l++z9Jn6id7/KAXJggsSeMyi4= X-Received: by 2002:a17:907:382:b0:a3d:841e:3d75 with SMTP id ss2-20020a170907038200b00a3d841e3d75mr3286997ejb.61.1708089761265; Fri, 16 Feb 2024 05:22:41 -0800 (PST) Received: from otso.luca.vpn.lucaweiss.eu (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id gz15-20020a170906f2cf00b00a38103ab710sm1553060ejb.125.2024.02.16.05.22.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 05:22:41 -0800 (PST) From: Luca Weiss <luca.weiss@fairphone.com> Date: Fri, 16 Feb 2024 14:22:38 +0100 Subject: [PATCH] Bluetooth: Add more Bluetooth version defines Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240216-bluetooth-defines-v1-1-6c39aacc66a8@fairphone.com> X-B4-Tracking: v=1; b=H4sIAJ1hz2UC/x2MWwqAIBAAryL7neDag+oq0UfWlguhoRZBdPekz 2GYeSBSYIrQiwcCXRzZuwxYCJjt5DaSvGQGrXSlNDbS7Ccl75OVC63sKErTopqprkrsEHJ3hCz u/zmM7/sBiaEz5WMAAAA= To: Marcel Holtmann <marcel@holtmann.org>, Johan Hedberg <johan.hedberg@gmail.com>, Luiz Augusto von Dentz <luiz.dentz@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: ~postmarketos/upstreaming@lists.sr.ht, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, Luca Weiss <luca.weiss@fairphone.com> X-Mailer: b4 0.12.4 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791061951846378386 X-GMAIL-MSGID: 1791061951846378386 |
Series |
Bluetooth: Add more Bluetooth version defines
|
|
Commit Message
Luca Weiss
Feb. 16, 2024, 1:22 p.m. UTC
Add the various Bluetooth version identifiers found in the "Assigned
Numbers" document[0] from the Bluetooth SIG.
[0] https://www.bluetooth.com/specifications/assigned-numbers/
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
To be clear, I don't have a use case for these extra defines myself but
some time ago when working on Bluetooth I came across this and thought
it would be interesting to have the list complete. No other motives.
---
include/net/bluetooth/bluetooth.h | 9 +++++++++
1 file changed, 9 insertions(+)
---
base-commit: 841c35169323cd833294798e58b9bf63fa4fa1de
change-id: 20240216-bluetooth-defines-b810ce543191
Best regards,
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 7ffa8c192c3f..818eb142eda3 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h @@ -39,11 +39,20 @@ #endif /* Bluetooth versions */ +#define BLUETOOTH_VER_1_0B 0 #define BLUETOOTH_VER_1_1 1 #define BLUETOOTH_VER_1_2 2 #define BLUETOOTH_VER_2_0 3 #define BLUETOOTH_VER_2_1 4 +#define BLUETOOTH_VER_3_0 5 #define BLUETOOTH_VER_4_0 6 +#define BLUETOOTH_VER_4_1 7 +#define BLUETOOTH_VER_4_2 8 +#define BLUETOOTH_VER_5_0 9 +#define BLUETOOTH_VER_5_1 10 +#define BLUETOOTH_VER_5_2 11 +#define BLUETOOTH_VER_5_3 12 +#define BLUETOOTH_VER_5_4 13 /* Reserv for core and drivers use */ #define BT_SKB_RESERVE 8