Change the L2CAP LE buffer size to 0xFFFF 83/301783/1
authorWootak Jung <wootak.jung@samsung.com>
Thu, 2 Nov 2023 00:31:19 +0000 (09:31 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 22 Nov 2023 23:07:41 +0000 (08:07 +0900)
Change-Id: Id0ba8ef701c58a380566c87763c76fd91057c388
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-api/bt-l2cap-le-server.c
bt-api/include/bt-common.h
bt-oal/bluez_hal/src/bt-hal-l2cap-le-dbus-handler.c

index c86dfe3..30fb8f1 100644 (file)
@@ -487,6 +487,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);
index 89fd05d..d419038 100644 (file)
@@ -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"
 
index 7b850c5..374aa67 100644 (file)
@@ -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-"