projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add new L2CAP socket API to get the maximum buffer size
[platform/core/connectivity/bluetooth-frwk.git]
/
bt-api
/
bt-l2cap-le-client.c
diff --git
a/bt-api/bt-l2cap-le-client.c
b/bt-api/bt-l2cap-le-client.c
index
65925db
..
639d0cb
100644
(file)
--- a/
bt-api/bt-l2cap-le-client.c
+++ b/
bt-api/bt-l2cap-le-client.c
@@
-543,3
+543,13
@@
BT_EXPORT_API int bluetooth_l2cap_le_write(int fd, const char *buf, int length)
return result;
}
+
+BT_EXPORT_API int bluetooth_l2cap_le_get_max_buffer_size(int *size)
+{
+ BT_CHECK_ENABLED_LE(return);
+ BT_CHECK_PARAMETER(size, return);
+
+ *size = BT_L2CAP_LE_BUFFER_LEN;
+
+ return BLUETOOTH_ERROR_NONE;
+}