From: Wootak Jung Date: Thu, 2 Nov 2023 00:31:19 +0000 (+0900) Subject: Change the L2CAP LE buffer size to 0xFFFF X-Git-Tag: accepted/tizen/unified/20231106.171621^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F52%2F300752%2F3;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Change the L2CAP LE buffer size to 0xFFFF Change-Id: Id0ba8ef701c58a380566c87763c76fd91057c388 Signed-off-by: Wootak Jung --- diff --git a/bt-api/bt-l2cap-le-server.c b/bt-api/bt-l2cap-le-server.c index 1328c35..b57e97f 100644 --- a/bt-api/bt-l2cap-le-server.c +++ b/bt-api/bt-l2cap-le-server.c @@ -450,6 +450,8 @@ static gboolean __data_received_cb(GIOChannel *chan, GIOCondition cond, goto fail; } + BT_DBG("fd: %d, len: %zu, buffer: %s", client_info->sock_fd, len, buffer); + event_info = _bt_event_get_cb_data(BT_L2CAP_LE_SERVER_EVENT); if (event_info == NULL) { g_free(buffer); diff --git a/bt-api/include/bt-common.h b/bt-api/include/bt-common.h index 39758bb..2342242 100644 --- a/bt-api/include/bt-common.h +++ b/bt-api/include/bt-common.h @@ -182,7 +182,7 @@ extern "C" { #define BT_ADDRESS_STRING_SIZE 18 #define BT_ADAPTER_OBJECT_PATH_MAX 50 #define BT_RFCOMM_BUFFER_LEN 1024 -#define BT_L2CAP_LE_BUFFER_LEN 1024 +#define BT_L2CAP_LE_BUFFER_LEN 0xFFFF #define BT_ACCESS_DENIED_MSG "Rejected send message" diff --git a/bt-oal/bluez_hal/src/bt-hal-l2cap-le-dbus-handler.c b/bt-oal/bluez_hal/src/bt-hal-l2cap-le-dbus-handler.c index 7b850c5..374aa67 100644 --- a/bt-oal/bluez_hal/src/bt-hal-l2cap-le-dbus-handler.c +++ b/bt-oal/bluez_hal/src/bt-hal-l2cap-le-dbus-handler.c @@ -33,7 +33,7 @@ #include "bt-hal-socket-common.h" #define BT_HAL_L2CAP_LE_ID_MAX 245 -#define BT_HAL_L2CAP_LE_MAX_BUFFER_SIZE 1024 +#define BT_HAL_L2CAP_LE_MAX_BUFFER_SIZE 0xFFFF #define L2CAP_LE_DEFAULT_CHANNEL 0 #define L2CAP_LE_PSM_MAX 0xFFFF #define L2CAP_LE_UUID_SUBSTR "FFFFFFFF-FFFF-FFFF-FFFF-"