blob: fa9bc645bfb9d1774083e573f4f65a84ebf0f201 [file] [log] [blame]
Chris Manton53efad72019-07-19 13:54:52 -07001/*
2 * Copyright 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
18#include <cstdint>
19
20namespace bluetooth {
21namespace l2cap {
22
Hansong Zhang3ab03152019-11-12 14:11:03 -080023using Mtu = uint16_t;
Chris Manton53efad72019-07-19 13:54:52 -070024
Hansong Zhang3ab03152019-11-12 14:11:03 -080025constexpr Mtu kMinimumClassicMtu = 48;
Hansong Zhang3ab03152019-11-12 14:11:03 -080026constexpr Mtu kMinimumLeMtu = 23;
Hansong Zhangf43cda62019-11-13 14:27:57 -080027constexpr Mtu kDefaultClassicMtu = 672;
Chris Manton53efad72019-07-19 13:54:52 -070028
29} // namespace l2cap
30} // namespace bluetooth