Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Unified Diff: content/browser/bluetooth/bluetooth_device_chooser_controller.cc

Issue 2642123003: Bluetooth: Make maximum possible name filter 248 bytes, not 240 (Closed)
Patch Set: Change all NotFoundErrors to TypeErrors Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bluetooth/bluetooth_device_chooser_controller.cc
diff --git a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
index ac2ac7b2a632e29494d3f8fbb47e39cb5f3335af..7221db3b0d3fb12acd46bf314454c9670ee11b55 100644
--- a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
+++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
@@ -79,11 +79,9 @@ namespace content {
bool BluetoothDeviceChooserController::use_test_scan_duration_ = false;
namespace {
-// Max length of device name in filter. A name coming from an adv packet
-// is max 29 bytes (adv packet max size 31 bytes - 2 byte length field),
-// but the name can also be acquired via gap.device_name, so it is limited
-// to the max EIR packet size of 240 bytes. See Core Spec 5.0, vol 3, C, 8.1.2.
-constexpr size_t kMaxLengthForDeviceName = 240;
+// Max length of device name in filter. Bluetooth 5.0 3.C.3.2.2.3 states that
+// the maximum device name length is 248 bytes (UTF-8 encoded).
+constexpr size_t kMaxLengthForDeviceName = 248;
// The duration of a Bluetooth Scan in seconds.
constexpr int kScanDuration = 60;
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698