| 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;
|
|
|