]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Bluetooth: Rename L2CAP_LE_DEFAULT_MTU
authorAndre Guedes <andre.guedes@openbossa.org>
Thu, 31 May 2012 20:01:35 +0000 (17:01 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:16 +0000 (06:34 +0300)
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>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_sock.c

index a00b43ecbc776e570a0e806b0d5c90ed5757dc9d..ce99c5683d9e47ea577ffbba9f9fca69c5249e09 100644 (file)
 #define L2CAP_DEFAULT_MONITOR_TO       12000   /* 12 seconds */
 #define L2CAP_DEFAULT_MAX_PDU_SIZE     1009    /* Sized for 3-DH5 packet */
 #define L2CAP_DEFAULT_ACK_TO           200
-#define L2CAP_LE_DEFAULT_MTU           23
 #define L2CAP_DEFAULT_MAX_SDU_SIZE     0xFFFF
 #define L2CAP_DEFAULT_SDU_ITIME                0xFFFFFFFF
 #define L2CAP_DEFAULT_ACC_LAT          0xFFFFFFFF
 #define L2CAP_BREDR_MAX_PAYLOAD                1019    /* 3-DH5 packet */
+#define L2CAP_LE_MIN_MTU               23
 
 #define L2CAP_DISC_TIMEOUT             msecs_to_jiffies(100)
 #define L2CAP_DISC_REJ_TIMEOUT         msecs_to_jiffies(5000)
index ab5868d9430717e47087dac1ed1fef29a7b20eb9..a4bb27e8427e9aabaa48b90727cb23bcf5568f96 100644 (file)
@@ -449,7 +449,7 @@ static bool l2cap_valid_mtu(struct l2cap_chan *chan, u16 mtu)
 {
        switch (chan->scid) {
        case L2CAP_CID_LE_DATA:
-               if (mtu < L2CAP_LE_DEFAULT_MTU)
+               if (mtu < L2CAP_LE_MIN_MTU)
                        return false;
                break;