From patchwork Fri Feb 16 13:22:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13560016 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 F04D41292F2 for ; Fri, 16 Feb 2024 13:22:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708089764; cv=none; b=bM66fuEWPrp4J693uHCU3rqJuflFvemE1Rr3WEqTQsArdhaxf2QODzHe3Bq12HA18zAxatxAA0r0Ru/X9G+wCGdURAZs0tNWWNvPn+jmWL6iWwI9ziLbNLRLU5M/IH3VNAK1orG3tRLxCTWMBAN2U4a8qbB0PhvihELit6ZSdpY= 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.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="eHKPBkH2" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a3debe0167fso52219366b.3 for ; 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=dHgpjVO0b7Ne4p50lTQfLFYFnyceYoobbnPOYP4s4w8mz2x5HY6HKP7G4nRNLZ/Mmh Nx2jssQFiaBRLrfMGHa/dHI4OEosTwVknFMBQtiNXwbQmnOncaIBwqiawWkYqyZtHsL2 FDKaGPKsNjlREDut8q1MrqWjro8B4lz3dE1cBJW8NBj8pxunOzZQZ5pmMmyGtSqCMpUr NSUtQg4SAmoBlYko9e7TbISqGccVPdPgu019oimWQ2pjYIkkRB8TU1d6QU8ZpDEmkU+0 Otg6cpktiRwnZIGdRYsEFu+igXYKG8FJ12+ccd8qC3ABJ0ygZBFJcPLokcLmNh9uVLIs /Hbw== X-Forwarded-Encrypted: i=1; AJvYcCWyiH1rzNSC/Ap4IW/LWh7dh1n9P7F5XDjNhYHCYCdpFau0Jrc+BKXmae/HdUMlhZ9FIbby2AN9Sz4ZU4ldQi0CR4nABYau X-Gm-Message-State: AOJu0Yy3+7k5ufM+JiuSSc8L28lULURTs+ol4P7KIgSTdhD5PV6XjvB7 86iPjprEjbDbik4adAOLw2Oyri3xQ3b3cgacc0aASxGkSONfPR7lTl0RxErbPURN3SHmjWnQ5d7 d X-Google-Smtp-Source: AGHT+IHMkALfGXBfUoxsJpAiTgK6gRswQPXjfjP645gXjCyLE3nug2dYR+7QvReh0nh5hW3kChm2/w== 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 Date: Fri, 16 Feb 2024 14:22:38 +0100 Subject: [PATCH] Bluetooth: Add more Bluetooth version defines Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 , Johan Hedberg , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni 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 X-Mailer: b4 0.12.4 X-Patchwork-Delegate: kuba@kernel.org 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 --- 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