Commit 8c3a4f004e706fd7e681c68c6de4946c8c76b976

Authored by Andre Guedes
Committed by Johan Hedberg
1 parent 682877c31f

Bluetooth: Rename L2CAP_LE_DEFAULT_MTU

This patch renames L2CAP_LE_DEFAULT_MTU macro to L2CAP_LE_MIN_MTU
since it represents the minimum MTU value, not the default MTU
value for LE.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

include/net/bluetooth/l2cap.h
... ... @@ -40,11 +40,11 @@
40 40 #define L2CAP_DEFAULT_MONITOR_TO 12000 /* 12 seconds */
41 41 #define L2CAP_DEFAULT_MAX_PDU_SIZE 1009 /* Sized for 3-DH5 packet */
42 42 #define L2CAP_DEFAULT_ACK_TO 200
43   -#define L2CAP_LE_DEFAULT_MTU 23
44 43 #define L2CAP_DEFAULT_MAX_SDU_SIZE 0xFFFF
45 44 #define L2CAP_DEFAULT_SDU_ITIME 0xFFFFFFFF
46 45 #define L2CAP_DEFAULT_ACC_LAT 0xFFFFFFFF
47 46 #define L2CAP_BREDR_MAX_PAYLOAD 1019 /* 3-DH5 packet */
  47 +#define L2CAP_LE_MIN_MTU 23
48 48  
49 49 #define L2CAP_DISC_TIMEOUT msecs_to_jiffies(100)
50 50 #define L2CAP_DISC_REJ_TIMEOUT msecs_to_jiffies(5000)
net/bluetooth/l2cap_sock.c
... ... @@ -449,7 +449,7 @@
449 449 {
450 450 switch (chan->scid) {
451 451 case L2CAP_CID_LE_DATA:
452   - if (mtu < L2CAP_LE_DEFAULT_MTU)
  452 + if (mtu < L2CAP_LE_MIN_MTU)
453 453 return false;
454 454 break;
455 455