projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9945ad3
)
Set socket role in bt_socket_create_rfcomm
73/26373/1
author
wu zheng
<wu.zheng@intel.com>
Thu, 21 Aug 2014 09:45:39 +0000
(17:45 +0800)
committer
wu zheng
<wu.zheng@intel.com>
Thu, 21 Aug 2014 09:45:39 +0000
(17:45 +0800)
Only server role uses bt_socket_create_rfcomm
Therefore, we need to set socket role in bt_socket_create_rfcomm
Change-Id: Iba4d852aaca20fadeb2388b8477a0ed86d3058b3
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
capi/bluetooth.c
patch
|
blob
|
history
diff --git
a/capi/bluetooth.c
b/capi/bluetooth.c
index
f0216cc
..
072cdde
100644
(file)
--- a/
capi/bluetooth.c
+++ b/
capi/bluetooth.c
@@
-4347,6
+4347,7
@@
int bt_socket_create_rfcomm(const char *service_uuid, int *socket_fd)
return BT_ERROR_OPERATION_FAILED;
*socket_fd = spp_ctx->fd;
+ spp_ctx->role = BT_SOCKET_SERVER;
return BT_SUCCESS;
}